home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / sys / sgi / 11376 < prev    next >
Encoding:
Text File  |  1992-07-25  |  2.0 KB  |  72 lines

  1. Newsgroups: comp.sys.sgi
  2. Path: sparky!uunet!zaphod.mps.ohio-state.edu!rpi!ghost.dsi.unimi.it!itnsg1.cineca.it!ditolla
  3. From: ditolla@itnsg1.cineca.it (Francesco Di Tolla)
  4. Subject: Re: TERM and env
  5. Message-ID: <1992Jul25.101543.3863@itnsg1.cineca.it>
  6. Organization: Laboratorio di Fisica Computazionale, INFM. Trento Italia
  7. References: <1992Jul23.203524.21287@magnus.acs.ohio-state.edu>
  8. Date: Sat, 25 Jul 1992 10:15:43 GMT
  9. Lines: 61
  10.  
  11. fnorman@magnus.acs.ohio-state.edu (J Farley Norman) writes:
  12.  
  13. >  Hi, I've got what hopefully is an easy question.
  14. >I'm using telnet to log into our 310 VGX.
  15. >If I use top I get the message :
  16.  
  17. >  Sorry, I need to know a more specific
  18. >terminal type than "network"
  19.  
  20. >  Also, it is difficult to use vi.
  21.  
  22. >  I tried using env TERM=vt100 to set
  23. >the terminal, but it didn't take.  If
  24. >I do a printenv, it then says
  25. >TERM=network
  26.  
  27. >  Also, adding TERM=vt100 into my
  28. >.profile file didn't change anything.
  29.  
  30. >  How can I change my TERM type so things
  31. >will work correctly ? Why is env not
  32. >working ?
  33.  
  34. >       Thanks alot,
  35.  
  36. >         Farley.
  37.  
  38. >  fnorman@magnus.acs.ohio-state.edu
  39.  
  40. setenv TERM vt100 
  41.  
  42. is the right way.
  43. You can control your enviroment variables settings by typing setenv
  44. in any kind of shell see also 'csh' man page.
  45. If your remote machine is a DEC one use also the command
  46.  
  47. stty dec
  48.  
  49. The best you can do is to put the following lines in your
  50. .login file
  51.  
  52. if (?REMOTEHOST)
  53.   setenv TERM vt100
  54.   stty (proper parameters -> see stty man page)
  55. endif
  56. if ($TERM == "iris-ansi") then
  57.     stty line 1 erase '^H' kill '^U' intr '^C' echoe
  58. endif
  59.  
  60.  
  61. Or place a switch (REMOTEHOST) after the if statement to distinguish
  62. among all possible names of the hosts you cuold log in.
  63.  
  64. By
  65. Franz
  66.  
  67. -- 
  68.  -------------------------------------------------------------------------- 
  69. |  In God they trust, and they need dollars to remember it.                |
  70.  --------------------------------------------------------------------------
  71. |  Francesco  D. Di Tolla            | Bitnet:    ditolla@itncisca.bitnet  |
  72.