Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!uunet!ccicpg!imt3b2!seila!don From: don@seila.UUCP (Don Kossman) Newsgroups: comp.unix.wizards Subject: Re: Script for setting TERM type Message-ID: <262@seila.UUCP> Date: Wed, 28-Oct-87 00:15:22 EST Article-I.D.: seila.262 Posted: Wed Oct 28 00:15:22 1987 Date-Received: Sat, 31-Oct-87 14:16:23 EST References: <155@wa3wbu.UUCP> Reply-To: don@seila.UUCP (Don Kossman, SEI) Organization: SEI Information Technology, LA, CA Lines: 27 Summary: use tset ... In article <155@wa3wbu.UUCP> john@wa3wbu.UUCP (John Gayman) writes: > > Im running Microport Sys V/AT on an AT-clone. Can anyone give me >a shell script for setting the Terminal type at login time. I use the >same login for myself but throughout the day use several terminal types. > I use the following on SCO Xenix; it uses a ".term" file to keep track of the last terminal you used: (put in your .profile) if [ -f .term ] then term=`cat .term` else term=vt100 fi tset -m $term:\?$term -s > .tset . .tset rm -f .tset echo $TERM > .term unset term -- Don Kossman, SEI Information Technology, Los Angeles usenet: {ccicpg!imt3b2 | peregrine!imt3b2 | sun!tsunama!tsunami}!seila!don