Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!sdd.hp.com!spool.mu.edu!snorkelwacker.mit.edu!bloom-picayune.mit.edu!athena.mit.edu!jik From: jik@athena.mit.edu (Jonathan I. Kamens) Newsgroups: comp.unix.questions Subject: Re: I need to unset & reset TERM environment variable from .login Message-ID: <1991Apr3.135107.2931@athena.mit.edu> Date: 3 Apr 91 13:51:07 GMT Article-I.D.: athena.1991Apr3.135107.2931 References: <13825@ccncsu.ColoState.EDU> Sender: news@athena.mit.edu (News system) Organization: Massachusetts Institute of Technology Lines: 24 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