sutton@lamar.colostate.edu (Richard Sutton) (03/29/91)
I want to start using a new version of telnet to connect my PC to a Sun Sparc Station I running SunOS 4.0.3c . This version of telnet automatically sets TERM to vt102. A number of software packages we have don't recognize vt102. Rather than manually doing a unsetenv TERM followed by a setenv TERM = vt100, could anyone tell me how to have .login detect that TERM is vt102, then reset TERM to vt100? Please mention which FM if the answer is RTFM. Thanks in Advance, Rich
jik@athena.mit.edu (Jonathan I. Kamens) (04/03/91)
In article <13825@ccncsu.ColoState.EDU>, sutton@lamar.colostate.edu (Richard Sutton) writes: |> Rather than manually doing a unsetenv TERM followed by a setenv TERM = vt100, |> could anyone tell me how to have .login detect that TERM is vt102, then |> reset TERM to vt100? Please mention which FM if the answer is RTFM. It seems to me that you're asking for a simple if statement to test the value of $TERM and change it if appropriate. if ("$TERM" == "vt102") then set term=vt100 setenv TERM vt100 endif Note that the "setenv" is probably unnecessary, because the shell will probably change TERM when you set term (mine does), but it doesn't hurt to do it just in case. The M you should R is csh(1). -- Jonathan Kamens USnail: MIT Project Athena 11 Ashford Terrace jik@Athena.MIT.EDU Allston, MA 02134 Office: 617-253-8085 Home: 617-782-0710