Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Posting-Version: version B 2.10 5/3/83; site ccivax.UUCP
Path: utzoo!watmath!clyde!floyd!harpo!seismo!rochester!ritcv!ccivax!crp
From: crp@ccivax.UUCP
Newsgroups: net.unix-wizards
Subject: RE: How do *you* identify terminals?
Message-ID: <128@ccivax.UUCP>
Date: Thu, 23-Feb-84 10:21:33 EST
Article-I.D.: ccivax.128
Posted: Thu Feb 23 10:21:33 1984
Date-Received: Fri, 24-Feb-84 02:35:25 EST
Organization: CCI Telephony Systems Group,  Roch, NY
Lines: 24

On System 3 and System 5, the Bourne Shell looks in
/etc/profile before $HOME/.profile. We use /etc/profile
to set $TERM (by looking in /etc/ttytype for the terminal)
Where /etc/profile looks like:

TERM=`tty | sed 's,/dev/,,'`
TERM=`grep $TERM /etc/ttytype`

if [ "$TERM". = . ] ; then
	TERM=dumb
else
	TERM=`echo $TERM | sed 's, .*,,'`
fi
export TERM

and /etc/ttytype looks like:

h19 tty00
vt100 tty01


				Chuck Privitera 
				Computer Consoles Inc.
				Rochester, NY