Sets, changes, or displays the terminal and printer characteristics for a port for the duration of a session.
TCL-I command.
TERM {a,b,c,d,e,f,g,h,i,j} {(options}
, is a parameter separator or place holder. If you do not want to change one or more options, you must type sequential commas. For example:
,,,,,,,,,2
a is the terminal line length minus 1 (number of characters per line). Valid values are 10-1000.
b is the number of display lines per page on the terminal. Usually set to 24.
c is the number of blank lines output at the top of the terminal page (sum of b and c equals page length). Valid values are 0-127. Usually set to 0.
d is the number of delay characters (X'00') following a RETURN or LINEFEED. This is used for terminals that require a pause after RETURN or LINEFEED. Valid values are 0-127.
e is the number of delay characters (X'00') following each top-of-form or form-feed. Valid values are 0-127. The values 0 and 1 have special meanings, as follows:
0 Does not send a form feed character to either the printer or the terminal.
1 Sends a form feed character to the printer. Does not send a form feed character to the terminal.
f is an alternate backspace character. Defines a decimal character (in addition to the standard ASCII value of 8) that the system treats as a backspace.
When you enter this character, the system deletes the preceding data character, then outputs the character defined as "cursor left" for your terminal type, a blank, and cursor left.
The system ignores the backspace character when it is the first character typed on a line.
Set the parameter to 8 for all terminals (the standard ASCII backspace is X'08').
Valid range is 0-31 and 127 (X'7F').
g is the printer line length (page width). Valid values are 10-1000. Standard value is 132.
h is the printer page length (depth). Usually set to 60.
i is the terminal type. Valid terminal types include:
0 PRISM I and II (US only)
1 Scribe (US only)
2 ADDS Viewpoint (US only)
3 Hardcopy device. Invalid for terminals. All cursor control requests are emitted as a CR/LF (X'0D'/X'0A') pair.
4 PRISM IV, V, 7, 8, and 9
5 VT52 (US only)
6 VT100 and VT220 (US only)
7 Wyse 50 (US only)
8 Prism 8/9 in multinational mode
9 Prism 9 in ANSI mode
15 Terminal type defined by UNIX TERM variable. Not applicable to Windows.
j is the printer Line Skip. Specifies the number of blank lines at the top of the printer page. Allows a Wordmate header to be printed on a letter quality printer.
n Port number. Specifies a port other than the one you are logged on to.
P Prints a report of configuration on the printer assigned to your port.
To display or print the configuration of the port you are currently logged on to, enter the TERM command without parameters. See Example 1.
A comma must be typed after each parameter you specify. If you want to leave one or more parameters unchanged, you must use the commas as place holders.
Parameter changes made using the TERM command are only effective until you log off the database.
The parameters you can display and specify using the TERM command are limited and do not fully configure a port.
The Terminal Type parameter (number 8) of the TERM command can be any number in the range of 0 through 127. Each of these numbers defines a specific type of terminal that can handle cursor control in an XON/XOFF network.
Cursor control strings used by non-intelligent ASCII terminals can contain XON or XOFF characters. If the host generates an XOFF, the terminal hangs. To prevent this, when an XON or XOFF character is sent, it is replaced by a character sequence that positions the cursor to one position higher than the one specified. This sequence is followed by a direct cursor movement string (instead of a relative movement string) that re-positions the cursor at the correct location.
:TERM
0. TERMINAL PAGE WIDTH : 79
1. TERMINAL PAGE DEPTH : 24
2. TERMINAL LINE SKIP : 0
3. LINE FEED DELAY : 0
4. FORM FEED DELAY : 2
5. BACKSPACE ON INPUT : 127
6. PRINTER PAGE WIDTH : 132
7. PRINTER PAGE DEPTH : 60
8. TERMINAL TYPE : 15
9. PRINTER LINE SKIP : 0
:TERM 79,24,1,5,5,8,130,55,4,2
:TERM
0. TERMINAL PAGE WIDTH : 79
1. TERMINAL PAGE DEPTH : 24
2. TERMINAL LINE SKIP : 1
3. LINE FEED DELAY : 5
4. FORM FEED DELAY : 5
5. BACKSPACE ON INPUT : 8
6. PRINTER PAGE WIDTH : 130
7. PRINTER PAGE DEPTH : 55
8. TERMINAL TYPE : 4
9. PRINTER LINE SKIP : 2