TERMDEF(1,C) AIX Commands Reference TERMDEF(1,C)
-------------------------------------------------------------------------------
termdef
PURPOSE
Queries terminal characteristics.
SYNTAX
+-- -t --+
termdef ---| one of |---|
| +----+ |
+-| -c |-+
| -l |
| -t |
+----+
DESCRIPTION
The termdef command identifies the current display model, the active lines
setting, or the current columns setting for the display being used. Since the
$TERM environment variable does not automatically reflect the display being
used, the termdef command can be used to set it to the correct value. If you
are using a display other than an ibm8513, you must explicitly reset $TERM
variable to access the terminfo correctly.
FLAGS
-c Returns the current column value.
-l Returns the current lines value.
-t Returns the name of the current display (this is the default action).
EXAMPLE
The termdef command queries the operating system as to which display model it
is currently running on. To set the $TERM environment variable to this same
value, the following commands can be issued:
o If you are running the Bourne shell (sh)
TERM=`termdef`
export TERM
o If you are running the C shell (csh)
set term=`termdef`
Processed November 8, 1990 TERMDEF(1,C) 1
TERMDEF(1,C) AIX Commands Reference TERMDEF(1,C)
These commands can be placed in your .profile, if running under the Borne
shell, or in your .cshrc if running under the 'c' shell.
RELATED INFORMATION
See the following command: "display."
See the terminfo file and the hft special file in AIX Operating System
Technical Reference.
Processed November 8, 1990 TERMDEF(1,C) 2