Return to BSD News archive
Newsgroups: comp.unix.bsd Path: sserve!newshost.anu.edu.au!munnari.oz.au!spool.mu.edu!olivea!uunet!world!kseel From: kseel@world.std.com (kurt w seel) Subject: Re: TERM type on login? Message-ID: <D2CpqG.JHq@world.std.com> Organization: The World @ Software Tool & Die X-Newsreader: TIN [version 1.2 PL2] References: <3ek72l$dk8$1@mhadg.production.compuserve.com> Date: Fri, 13 Jan 1995 15:59:04 GMT Lines: 38 Brent (71154.1734@CompuServe.COM) wrote: : If I make my user's shell an application (specifically a BBS : program) how can I set the TERM type when they login. When my : dialup lines connect the tty is unknown and the PINE mailer : refuses to run as does lynx. Can someone help me out here? : Brent I use this in my /etc/profile ; # # Get the last term (in .term) # T=`cat $HOME/.term` # # Confirm it # error=1 while [ $error != 0 ] do echo -n "Enter Terminal Type (default = $T)" read a TERM=${a:-"$T"} tput -T $TERM 2> /dev/null error=$? if [ $error != 0 ] then echo "No, that's not a terminal , try again ... " fi done : -- : I was feeling part of the scenery : I stepped right out of the machinery : -Peter Gabriel & 71154.1734@compuserve.com