TERM
Sets, changes, or displays the terminal and printer characteristics for a port for the duration of a session.
Command Class
TCL-I command.
Syntax
TERM {termLineLength,termLines,termBlankLines,returnDelay,formDelay,altBackspace, printLineLength,printLines,termType,printBlankLines} {(options}
or
TERM terminalName
Syntax Elements
, The parameter separator or place holder. If you do not want to change one or more options, you must type sequential commas. For example:
,,,,,,,,,2
The list of parameters must not contain spaces.
termLineLength The terminal line length (number of characters per line) minus 1. Valid values are 10-1000.
termLines The number of display lines per page on the terminal. Usually set to 24.
termBlankLines The number of blank lines output at the top of the terminal page (sum of termLines and termBlankLines equals page length). Valid values are 0-127. Usually set to 0.
returnDelay 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.
formDelay 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.
altBackspace An alternative 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').
printLineLength The printer line length (page width). Valid values are 10-1000. Standard value is 132.
printLines The printer page length (depth) in lines. Usually set to 60.
termType The terminal type number. Use TDM to list the available terminal types and their type numbers. The following terminal types are also available:
0 PRISM I and II.
15 Terminal type defined by UNIX TERM variable. Not applicable to Windows.
Note
Changing the terminal type sets the termLineLength, termLines, termBlankLines, returnDelay, formDelay and altBackspace to the values set (using TDM) for the new terminal type.
printBlankLines 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.
terminalName The name of a terminal type. Must not begin with a number or a dollar sign ($). Use TDM to list the available terminal types.
Options
P Prints a report of configuration on the printer assigned to your port.
Display/Print Current Configuration
To display or print the configuration of the port you are currently logged on to, enter the TERM command without parameters. See Example 1.
Comments
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.
Terminal Type Parameter
The termType parameter (number 8) can be any number in the range 0 to 127. Each of these numbers defines a specific type of terminal that can handle cursor control in an XON/XOFF network. Use TDM to list the available terminal types and their type numbers.
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.
Example 1
: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
Example 2
: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