Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.1 6/24/83; site ukma.UUCP Path: utzoo!watmath!clyde!cbosgd!ukma!sean From: sean@ukma.UUCP (Sean Casey) Newsgroups: net.unix-wizards Subject: Re: setting TERM on System Vr2 Message-ID: <887@ukma.UUCP> Date: Mon, 18-Feb-85 14:04:16 EST Article-I.D.: ukma.887 Posted: Mon Feb 18 14:04:16 1985 Date-Received: Thu, 21-Feb-85 07:11:05 EST References: <1145@aecom.UUCP> Organization: The White Tower @ The Univ. of KY Lines: 40 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@anl-mcs.arpa