home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.sys.sgi
- Path: sparky!uunet!zaphod.mps.ohio-state.edu!rpi!ghost.dsi.unimi.it!itnsg1.cineca.it!ditolla
- From: ditolla@itnsg1.cineca.it (Francesco Di Tolla)
- Subject: Re: TERM and env
- Message-ID: <1992Jul25.101543.3863@itnsg1.cineca.it>
- Organization: Laboratorio di Fisica Computazionale, INFM. Trento Italia
- References: <1992Jul23.203524.21287@magnus.acs.ohio-state.edu>
- Date: Sat, 25 Jul 1992 10:15:43 GMT
- Lines: 61
-
- fnorman@magnus.acs.ohio-state.edu (J Farley Norman) writes:
-
- > Hi, I've got what hopefully is an easy question.
- >I'm using telnet to log into our 310 VGX.
- >If I use top I get the message :
-
- > Sorry, I need to know a more specific
- >terminal type than "network"
-
- > Also, it is difficult to use vi.
-
- > I tried using env TERM=vt100 to set
- >the terminal, but it didn't take. If
- >I do a printenv, it then says
- >TERM=network
-
- > Also, adding TERM=vt100 into my
- >.profile file didn't change anything.
-
- > How can I change my TERM type so things
- >will work correctly ? Why is env not
- >working ?
-
- > Thanks alot,
-
- > Farley.
-
- > fnorman@magnus.acs.ohio-state.edu
-
- setenv TERM vt100
-
- is the right way.
- You can control your enviroment variables settings by typing setenv
- in any kind of shell see also 'csh' man page.
- If your remote machine is a DEC one use also the command
-
- stty dec
-
- The best you can do is to put the following lines in your
- .login file
-
- if (?REMOTEHOST)
- setenv TERM vt100
- stty (proper parameters -> see stty man page)
- endif
- if ($TERM == "iris-ansi") then
- stty line 1 erase '^H' kill '^U' intr '^C' echoe
- endif
-
-
- Or place a switch (REMOTEHOST) after the if statement to distinguish
- among all possible names of the hosts you cuold log in.
-
- By
- Franz
-
- --
- --------------------------------------------------------------------------
- | In God they trust, and they need dollars to remember it. |
- --------------------------------------------------------------------------
- | Francesco D. Di Tolla | Bitnet: ditolla@itncisca.bitnet |
-