home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The Fred Fish Collection 1.5
/
ffcollection-1-5-1992-11.iso
/
ff_disks
/
200-299
/
ff291.lzh
/
GMC
/
english.docs
/
GMC.Doc
< prev
next >
Wrap
Text File
|
1989-12-12
|
8KB
|
268 lines
-- GMC V4.0 --
Console Handler with command line editing and
function key support
GMC is an extension of the CON and the NEWCON handler respective-
ly. Compared with NEWCON, GMC provides the following additional
features:
- Extended command line editing
- Function key assignment in four levels
- Extended command line history
- Online help for functions of the handler
- Iconify function
These additional features and other differences are descripted in
the paragraphs below.
Command line editing
Command line editing is supported by the following functions:
1. Delete functions:
- Delete character in front of the cursor (1)
Backspace
- Delete character under the the cursor (2)
Del
- Delete from cursor position to start of word (3)
Ctrl-Backspace
- Delete from cursor position to end of word (4)
Ctrl-Del
- Delete from cursor position to start of line (5)
Shift-Backspace
- Delete from cursor position to end of line (6)
Shift-Del
- Delete line (7)
Alt-Backspace, Alt-Del
2. Cursor movement:
- Character left/right (1/2)
<-- / -->
- Word left/right (3/4)
Ctrl <-- / -->
- Start/End of line (5/6)
Shift <-- / -->
3. Insert/Overstrike mode:
The default mode (insert) can be toggled only for the cur-
rent line or durable. Toggle for the current line is made
by Ctrl-A. After RETURN is pressed the old mode is acti-
vated. To change the mode durable one must type
set ins:<n>
<n> = 1 stands for insert mode and <n> = 0 for overstrike.
In word movement and word delete, words are not only separated by
spaces but also by ':' '/' and '.'. With this feature quick edi-
ting of pathnames is possible.
The above listed line edit functions can be assign to different
keys. The list above is only the default assignment. The numbers
in brackets refer to the belonging functions.
The Backspace (bs), the Del (del), and the cursor keys (cu_left/
cu_right) are set by the following statement:
set <k><x>:<n>
<k> is the abreviation of the key, <x> the key that must be pres-
sed at the same time:
no key: <x> = ''
Shift key: <x> = 's'
Ctrl key: <x> = 'c'
Alt key: <x> = 'a'
<n> is the number of the function that shall be executed.
Additional information of the set function see next paragraph.
Function key assignment
All function keys can be assigned in four levels (alone, or with
pressed Shift, Ctrl, or Alt key). The function keys can be set
directly via the the keyboard or by write commands in the window.
For both methods the syntax is the same:
set <x>f<n>:<string>
<x> is the key that must be pressed at the same time with the
function key to recall <string>. <n> is the number of the func-
tion key. If the last two characters in <string> are "\n" the
line will be execute immediately when the function key is pres-
sed. Otherwise <string> will be inserted in the current command
line independantly of the insert/overstrike mode. A ';' as the
last character in <string> is ignored when the function key is
set. The function keys can be set separately by "echo" or as a
whole by "typing" a file which contains the settings. The set
command will be extracted from the input or output stream. The
function keys can be switched on with "set fkeys:1" and off with
"set fkeys:0". The settings are not touched by switching the
function keys on or off. By setting of one, the function keys are
automatically switched on.
Command line history
All commands are stored (up to 63 lines) and can be recalled in
different ways. The last typed line is stored at the end of the
list. If the list is too long, the line at the start of the list
is shifted out.
- With "cursor up/down" the list will be shown in direction
start/end of the list.
- With Shift-"cursor up" the list will be searched through
line-wise on basis of the partial line as a pattern given-
in up to this point in time.
- With Shift-"cursor down" a jump behind the end of the list
will be performed .
- With !<n> the command with the number <n> (number since the
handler was started) will be recalled.
Online help functions
The help key (alone of together with Shift, Ctrl, or Alt) shows
four different helps:
- Help
Display of the functions of the cursor keys, Backspace and
Del key, the command line recall by number, and the addi-
tional help functions.
- Shift-Help
Display of the first characters of the function key set-
tings.
- Ctrl-Help
Output of information how to set function keys and insert/
overstrike mode.
- Alt-Help
Display of the command line history with numbers. The out-
put can be stopped and continued by pressing any key. It
can be breaked by pressing RETURN.
Like the function keys, it is also possible to switch the help
key on or off:
set help:1 Help key on
set help:0 Help key off
Iconify function
The Iconify function can be assigned to any function key:
set <x>f<n>:ICONIFY <x> and <n> see function keys
The Iconify function clears the current command line and is exe-
cuted immediately. The produced small window can be shifted
around and brought back to its old size by a double click. If the
window is in the reduced size, no input and output is possible.
This means a task that wants to make IO is waiting for the double
click. The keyword ICONIFY must be given in capitals.
Others
The tabulator, the ESCAPE any Ctrl keys except Ctrl-A, Ctrl-C..F,
Ctrl-H, Ctrl-M, and Ctrl-\ have no function and won't be sent to
the CLI or Shell.
In RAW mode all keystrokes will be trnasmitted without any trans-
lation. In CON mode the four "Report" messages from the console.
device will also be passed through.
Installation
"Mount GMC:" installs the handler. Therefor the MountList in the
directory DEVS: must contain the entry listed below. GMC-Handler
must be copied to the directory L:. "Mount GMC:" should be in-
cluded in the startup-sequence. There are several ways to use
GMC: instead of CON: or NEWCON:. NewCLI, NewShell, or AShell can
be patched or GMC: must be given on start (NewShell GMC:xxx).
Another possibility is to replace GMC: by NEWCON: and install
GMC: as NEWCON:. Then the patch or the window specifications can
be omitted. The last possibility is to remove CON: by the the ARP
command "Assign CON: remove" and the installation of GMC: as CON:
with the PD program "AssignDev CON: GMC:. GMC: must be mounted
already.
MountList entry for GMC
GMC:
Handler = L:GMC-Handler
StackSize = 1500
Priority = 5
GlobVec = -1
#
Acknowledgement
Special thanks to Volker Rudolph for tests and suggestions.