setting TERM on System Vr2
Sean Casey
sean at ukma.UUCP
Tue Feb 19 05:04:16 AEST 1985
Anyone know of a good method to keep TERM information for System V?
I know that you can type TERM=xxx when typing your login
name, but we have a lot of hardwired terminals, and it would be
more convenient to have that terminal types kept in a file and
have it be set automatically.
--
Robert Berlinger
...{philabs,cucard,pegasus,ihnp4,rocky2}!aecom!naftoli
David Herron wrote a little routine into our /etc/profile that will
automatically set your tty type according to the line you are on. Here is
the portion of /etc/profile that does it:
-sh )
tty=`tty | sed '1,$s/.....//'`
set `grep $tty /etc/ttytype`
TERM=$2
export TERM
Here is our /etc/ttytype:
console 5620
contty vt100
tty11 vt100
tty12 vt100
tty13 vt100
tty14 vt100
tty15 vt100
I hope this helps.
Sean
--
Sean Casey UUCP: {hasmed, cbosgd}-\
{ucbvax, unmvax, boulder, research}!anlams---ukma!sean
{mcvax!qtlon, vax135, mddc}!qusavx-/
ARPA: "ukma!sean"@ANL-MCS or sean%ukma.uucp at anl-mcs.arpa
More information about the Comp.unix.wizards
mailing list