Path: utzoo!utgpu!jarvis.csri.toronto.edu!clyde.concordia.ca!uunet!dialogic!drich From: drich@.UUCP (Dan Rich) Newsgroups: comp.unix.wizards Subject: Re: Login (unique) problems with terminal emulations. Keywords: terminal emulation login profile problem Message-ID: <1030@dialogic.UUCP> Date: 28 Dec 89 14:50:11 GMT References: <1471@lakesys.lakesys.com> Sender: news@dialogic.UUCP Reply-To: drich@dialogic.UUCP (Dan Rich) Distribution: na Organization: Dialogic Corp., Parsippany, NJ Lines: 33 In article <1471@lakesys.lakesys.com> johnb@lakesys.lakesys.com (John C. Burant) writes: ... Problem with setting terminal type ... Before I go off into an answer for this, does anyone know of a way to auto-identify a terminal at login? I know that this can be done, because years ago, I used such a program under VMS. It would recognize a VT100, TVI920, ADM3a, and several other terminals. Here, we use vt100, vt220, and at386 (the ISC 386/ix console). It would be nice if I could find out what kind of terminal the user is without asking... Note: All commands in () are for ksh. First of all, when you execute a .login (.profile) with csh (ksh), it won't return any of the variables to the envoirment. The command you want it source (.) as in: % source ~/.login (. ~/.profile) If you want to reset the terminal without running your login script, just type the following sequence of commands: % tset -sQ > .temp % source .temp (. .temp) % rm .temp The problem is, that tset outputs the TERM= and TERMCAP= to standard out. This is supposed to be interpreted by the shell, but for some reason this never seems to work. I have used the above three lines in my .login for the last couple of years, and have never had a problem. -- Dan Rich | ARPA: drich%dialogic@uunet.uu.net UNIX Systems Administrator | UUCP: uunet!dialogic!drich Dialogic Corporation | - Time is an illusion. Lunchtime, doubly so. - (201) 334-1268 x213 | Douglas Adams