Websites Navigation: Airbit | Shop | m-shell.net
Languages: EN | DE

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 Process→Edit Source.

The console will cycle through the previous inputs.

The console offers the following menu options:

Process→GoRun the script or command.
Process→StopStop a currently executing script or command.
Process→CloseClose this script's console, or close the shell session.
Process→Edit SourceEdit the source associated with the script, or recall the previous input.
Process→CompileCompile the script into a .mex file which can be executed directly; see also section * ().
Process→Auto GoToggle 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.

Process→Save OutputSave the console text to a file, using the current source file encoding.
Process→Clear OutputClear the console, i.e. remove all text.
Process→View Size(S60 only): toggle the view size, showing or hiding the title pane.
Edit→Back(S60 only) return to the script list.
Edit→HelpShow the help for the text before the cursor (see chapter * ()).
Edit→Error TraceShow the error traceback for the last runtime error (see chapter * ()).
Edit→CopyCopy the selected text to the clipboard.
Edit→CutCut the selected text to the clipboard.
Edit→PastePaste text from the clipboard.
Edit→FindOpen a find/replace dialog and start find mode (see section * ()).


© 2004-2011 airbit AG, CH-8008 Zürich
Document AB-M-TUT-887
mShell Home  > Documentation  > Manuals