The GRT shell is principally used for running Lua scripts or
typing Lua commands directly. However, you can also access the
GRT Scripting Library functions and global functions and
objects. To see the available commands type
“?
”.
Some OS-specific commands are also available. For instance, under Windows you can clear the screen by typing cls. Unlike most shells, you can cut and paste text to and from the shell window.
Working from the command line is described in detail in Section 10.3, “Using the GRT Shell”.
The Snippets
tab functions as a scratch pad
for saving code snippets. This makes it easy to reuse code and
does away with the need to retype it at the command line.
If you have opened script files as described in
Section 10.2.1.1.1, “Windows File Menu”, there may be any number of tabs
to the right of the Snippets
tab. These tabs
will be labeled with the names of the script files. As with the
Snippets
tab you can cut and paste to or from
any of the tabs. This gives you the opportunity to test code
from the command line.