Prev: The Script List
The Console
Every active script and shell session has a console associated with it. It is displayed if a script or session is selected from the script list.
The console is a simple text viewer displaying the output of the print statement (and the io.stdout stream). In interactive shells, it also serves to input the m statements to be executed.
 | |  |
| Series 60 sample screen | | UIQ sample screen |
To start or continue execution,
| Series 60: | Press the confirm button. |
| UIQ: | Press the button. |
Console text is frozen up to the point of last output. In interactive shells, this is typically all text up to the last m> prompt.
The console has a command history. A certain number of previous inputs can be recalled:
| Series 60: | Press the down key. |
| UIQ: | Press the button, or use . |
The console will cycle through the previous inputs.
The console offers the following menu options:
| Run the script or command. |
| Stop a currently executing script or command. |
| Close this script's console, or close the shell session. |
| Edit the source associated with the script, or recall the previous input. |
| Compile the script into a .mex file which can be executed directly; see also section * (). |
| Toggle the "auto go" state of the script or executable. If "auto go" is enabled (indicated by a or icon), the script or executable is started automatically whenever the m application starts.
Note that scripts are only started if they reside in the current directory. Executables are always started. |
| Save the console text to a file, using the current source file encoding. |
| Clear the console, i.e. remove all text. |
| (S60 only): toggle the view size, showing or hiding the title pane. |
| (S60 only) return to the script list. |
| Show the help for the text before the cursor (see chapter * ()). |
| Show the error traceback for the last runtime error (see chapter * ()). |
| Copy the selected text to the clipboard. |
| Cut the selected text to the clipboard. |
| Paste text from the clipboard. |
| Open a find/replace dialog and start find mode (see section * ()). |
|
Next: Script Files© 2004-2011 airbit AG, CH-8008 Zürich
Document AB-M-TUT-887