Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!uunet!husc6!rutgers!columbia!cheshire.columbia.edu!francus From: francus@cheshire.columbia.edu (Yoseff Francus) Newsgroups: comp.unix.wizards Subject: Re: Script for setting TERM type Message-ID: <5093@columbia.edu> Date: Sat, 24-Oct-87 20:21:50 EST Article-I.D.: columbia.5093 Posted: Sat Oct 24 20:21:50 1987 Date-Received: Mon, 26-Oct-87 05:22:07 EST References: <155@wa3wbu.UUCP> Sender: nobody@columbia.edu Reply-To: francus@cheshire.columbia.edu.UUCP (Yoseff Francus) Organization: Columbia University CS Department Lines: 40 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. >Invaribly I forget to manually set TERM type and then VI, and well you >know the rest :-) > > I would like a small script to stick on the end of .profile that >would give me a one-line prompt at login time and ask me for my terminal >type. Preferably if nothing were entered it would default to vt100. > > I attempted to write my own script and everything looked like it >worked except the term type wouldnt actually get changed. Any ideas ? > > > John > I use the following lines at the beginning of my .profile and it works fine. If I don't specify any terminal it defaults to hds. echo "TERM (hds): \c";read TERM if [ "${TERM}" = "" ] then TERM=hds fi export TERM TERMCAP LOGNAME EDITOR This has worked under Berkeley Unix and Sys V UNIX, under bith Ksh and bsh. Yoseff ****************************************************************** yf In Xanadu did Kubla Khan a stately pleasure dome decree But only if the NFL to a franchise would agree. ARPA: francus@cs.columbia.edu UUCP: seismo!columbia!francus