job control
VLD/VMB
gwyn at BRL.ARPA
Tue Apr 15 09:56:47 AEST 1986
echo $TERM
to print the current value of the environment variable TERM.
(This is explained in almost any UNIX tutorial.)
env
prints the entire current environment (UNIX System V; use
"printenv" in Cshells).
Terminal descriptions are contained in /etc/termcap or the
terminfo equivalent (SVR2 only). This database is indexed
by the value of TERM; if you claim to be using a "vt100",
then the description for a DEC VT-100 is used. By gum, a
DEC VT-100 does NOT have 62x116 character positions. To
get the 62x116 terminal described, have an entry with a
new name added to /etc/termcap, e.g.
xx|crispin|Crispin's magic terminal:\
:co#116:li#62:tc=vt100:
Another approach, if your system supports it, is to set
the window size information into the kernel data structure
associated with the terminal, via TIOCSWINSZ or equivalent.
This overrides the screen size info from /etc/termcap and
is (0,0) until specifically set. Windowing systems should
update this information for each pseudo-terminal automatically.
Your system administrator really should know all this and
be able to set up your login state appropriately.
More information about the Comp.unix.wizards
mailing list