GTM>kill GTM>use $principal:escape GTM>read *x set zb=$zb zwrite (Press the F11 key on the VT220 terminal keyboard) x=27 zb=$C(27)_"[23~"
GTM>kill GTM>use $principal:(noescape:term=$char(13)) GTM>read *x set zb=$zb read y:0 zwrite (Press the F11 key on the terminal keyboard) [23~x=27 y="[23~" zb="" GTM>use $principal:noecho read *x set zb=$zb read y:0 use $principal:echo zwrite x=27 y="[23~" zb="" GTM>read *x set zb=$zb use $principal:flush read y:0 zwrite x=27 y="" zb=""
The following tables provide a brief summary of deviceparameters for terminals, grouped into related areas. For detailed information, refer to a??Opena??, a??Usea??, and a??Closea??.
Error Processing Deviceparameters | ||
---|---|---|
DEVICEPARAMETER |
COMMAND |
COMMENT |
EXCEPTION=expr |
O/U/C |
Controls device-specific error handling. |
Interaction Management Deviceparameters | ||
---|---|---|
DEVICEPARAMETER |
COMMAND |
COMMENT |
[NO]CENABLE |
U |
Controls whether <CTRL-C> on $PRINCIPAL causes GT.M to go to direct mode. |
CTRAP=$CHAR(intexpr[,...]) |
U |
Controls vectoring on trapped <CTRL> characters. |
[NO]EDITING |
U |
Controls the editing mode for $PRINCIPAL. |
[NO]EMPTERM |
U |
Control whether an "Erase" character on an empty input line should terminate a READ or READ # command. |
[NO]ESCAPE |
U |
Controls escape sequence processing. |
[NO]INSERT |
U |
Controls insert or overstrike on input. |
[NO]PASTHRU |
U |
Controls interpretation by the operating system of special control characters (for example <CTRL-B>). |
[NO]TERMINATOR[=expr] |
U |
Controls characters that end a READ |
Flow Control Deviceparameters | ||
---|---|---|
DEVICEPARAMETER |
COMMAND |
COMMENT |
[NO]CONVERT |
U |
Controls forcing input to uppercase. |
[NO]FILTER |
U |
Controls some $X, $Y maintenance. |
FLUSH |
U |
Clears the typeahead buffer. |
[NO]HOSTSYNC |
U |
Controls host's use of XON/XOFF. |
[NO]READSYNC |
U |
Controls wrapping READs in XON/XOFF. |
[NO]TTSYNC |
U |
Controls input response to XON/XOFF. |
[NO]TYPEAHEAD |
U |
Controls unsolicited input handling. |
Screen Management Deviceparameters | ||
---|---|---|
DEVICEPARAMETER |
COMMAND |
COMMENT |
CLEARSCREEN |
U |
Clears from cursor to end-of-screen. |
DOWNSCROLL |
U |
Moves display down one line. |
[NO]ECHO |
U |
Controls the host echo of input. |
ERASELINE |
U |
Clears from cursor to end-of-line. |
[Z]LENGTH=intexpr |
U |
Controls maximum number of lines on a page ($Y). |
UPSCROLL |
U |
Moves display up one line. |
[Z]WIDTH=intexpr |
U |
Controls the maximum width of an output line ($X). |
[Z][NO]WRAP |
U |
Controls handling of output lines longer than the maximum width. |
X=intexpr |
U |
Positions the cursor to column intexpr. |
Y=intexpr |
U |
Positions the cursor to row intexpr. |
This section contains examples of GT.M terminal handling.
use $principal:(exception="zg "_$zl_":C^MENU")
use $principal:(x=0:y=0:clearscreen)
This example positions the cursor to the upper left-hand corner and clears the entire screen.
use $principal:(noecho:width=132:wrap)
Note that GT.M enables WRAP automatically when you specify the WIDTH deviceparameter.
use $principal:nocenable