![]() | ![]() | |||||||||||||||
|
Command Line InteractionSparForte supports all modern terminal or console windows, including the Linux text console, KDE's konsole, the Gnome console and most monochrome terminal emulations that cursor movement. Support for inverse and bold print is preferred. Command Line Key BindingsWith SparForte 2.0, the language now uses the GNU readline library to handle command line key sequences. See the GNU readline documentation for additional information about what editing keys are supported, or how to customize your keys. Non-Readline Command Line Key BindingsIf you decide not to use GNU readline, you can use the old SparForte command line input functions. SparForte recognizes the Linux console arrow keys and common key sequences for the "emacs" and "vi" text editors. The sequences are called key bindings and represent cursor movement and editing functions. The emacs mode key bindings are:
If you prefer to use vi cursor movement instead, press the escape key to enter vi mode. Press escape again to return to emacs mode. In vi mode, you can use lower-case 'h', 'j', 'k', 'l', 'x' (delete under cursor), '^' and '$'. Filename completion is accomplished with two escape key presses in a row. Command HistorySparForte remembers up to 100 command lines for the current session, and you can cycle through them using control-p and control-n. The history command will show your command history. Filename CompletionPressing a tab (or ESC twice) on the command line will cause SparForte to search for filenames to complete a command. If there are multiple matches, SparForte will complete as much of the filename as matches all cases. Pressing tab again will show a list of the possible matches. A maximum of 10 are shown. If there are 10 or more matches in the list, the message "[Maybe More]" is shown. If the filename contains a leading tilde, it will be treated as the path to your home directory. SIGINT HandlingTyping a control-c (sending a SIGINT signal) at the command prompt acts the same as a control-x. Pressing control-c while a script or command is running will cause it to stop. Interactive Sessions versus ScriptsInteractive sessions have the following limitations or features:
|
![]() Block Statements and Subprograms |
![]() |
![]() |