TERM |
![]() ![]() ![]() |
The TERM command specifies the terminal display dimensions.
Format
TERM TERM { columns } { , lines } {term.type} TERM COLOUR { bgc} { , fgc} TERM DEFAULT TERM DISPLAY
where
The TERM command with no qualifying information reports the display device settings. It shows the page width and depth together with the terminal type (as in the @TERM.TYPE variable).
The command may include either or both of the columns and lines values to specify the characteristics of the display device. If used for a console session or a QMTerm connection with values of columns and lines less than 256, the command will also set the device window to the given shape.
The columns value must be in the range 20 to 32767. The lines value must be in the range 10 to 32767.
The term.type option selects the terminal device type. The name given must correspond to an entry in the terminfo library or may be QMTERM (case independent) for the QMTerm emulator.
The COLOUR (or COLOR) option can be used to set the background and foreground colours. The colour names are case insensitive and chosen from BLACK, BLUE, GREEN, CYAN, RED, MAGENTA, BROWN, WHITE, GREY, BRIGHT BLUE, BRIGHT GREEN, BRIGHT CYAN, BRIGHT RED, BRIGHT MAGENTA, YELLOW, BRIGHT WHITE. The American spelling GRAY can be used in place of GREY and the two word names can be written with either a space or a dot between the words.
Note that some terminal emulators only apply the background colour to characters output by the application, not to the entire window. Thus clearing the screen, for example, may lead to unexpected results.
The TERM DEFAULT command resets the device to 80 x 24.
The TERM DISPLAY command displays a list of input key codes and output control sequences for the currently selected terminal type.
Example
TERM 120,32
The above command sets the terminal to be 120 columns wide by 32 lines. A subsequent TERM command with no qualifying information would report
Page width: 120 Page depth: 32 Device : QMTERM |