Please note that the recommended version of Scilab is 2024.0.0. This page might be outdated.
See the recommended documentation of this function
shows or hides the MS Windows terminal running the Scilab session
consolebox on consolebox off status = consolebox("toggle") status = consolebox()
"on" | "off": visibility of the OS window after the call to
The "consolebox" black window is the "hidden" terminal of the Operating system from which the current Scilab session has been run. It is somewhat the "dark side" of your session :)
||makes the OS window visible and adds its button in the task bar. The black consolebox window lays in the background, and then may be masked by other windows of the OS desktop.|
||masks the OS window and its button from the task bar.|
||toggles the OS window's visibility, and returns its new status "on"|"off".|
||queries the visibility of the OS window.|
Each Scilab session has its own "consolebox". The consolebox of a session is killed when the Scilab session is quit.
The "consolebox" black window can't be closed interactively: its X-cross at the upper-right corner is disabled. Killing it kills Scilab session.
unix display their results in the
unix_g, unix_w, unix_x, unix_s catch results returned
by the OS and cancel any display in the consolebox.
Some low level Scilab functions (such as the documentation builder or other ones) send most of their errors messages in the consolebox. These messages would be considered as spam in the Scilab console.
When the Scilab console has the focus, pressing the
consolebox on // See the consolebox button appearing in the task bar. <== // Click on it to bring the consolebox on the foreground. <== sleep(10,"s") consolebox toggle sleep(5,"s") // Now: press the F12 key to toggle the consolebox <== consolebox on consolebox // Instructions passed to host() or unix() are echoed in the consolebox: host("echo Test of output") // displays "Test of output" in the consolebox host cls // clears the consolebox screen host set // lists all defined MS Windows environnement variables // Other unix_#() commands catch results returned by the Operating System, // instead of displaying them in the consolebox: host cls unix_w("echo Test of output") // "Test of output" is now displayed in Scilab console unix_x set; // Results are displayed in a messagebox. Nothing in consolebox r = unix_g("set"); // Environment variables are returned in r. r // Nothing is displayed in the consolebox
|Report an issue|
|<< Windows tools||Windows tools||createGUID >>|