home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / comp / sys / sgi / 12354 < prev    next >
Encoding:
Text File  |  1992-08-13  |  2.3 KB  |  67 lines

  1. Newsgroups: comp.sys.sgi
  2. Path: sparky!uunet!convex!darwin.sura.net!mips!odin!sgi.com!scotth
  3. From: scotth@hoshi.corp.sgi.com (Scott Henry)
  4. Subject: Re: emacs via remote login
  5. In-Reply-To: bruggink@neep.engr.wisc.edu's message of 13 Aug 92 15: 52:17 GMT
  6. Message-ID: <SCOTTH.92Aug13102528@hoshi.corp.sgi.com>
  7. Sender: news@odin.corp.sgi.com (Net News)
  8. Nntp-Posting-Host: hoshi.corp.sgi.com
  9. Organization: Silicon Graphics Inc, Mountain View, CA
  10. References: <BRUGGINK.92Aug13105217@neep.engr.wisc.edu>
  11. Distribution: comp.sys.sgi
  12. Date: Thu, 13 Aug 1992 15:25:28 GMT
  13. Lines: 52
  14.  
  15.  
  16. >>>>> In article <BRUGGINK.92Aug13105217@neep.engr.wisc.edu>, bruggink@neep.engr.wisc.edu (Dennis Bruggink) writes:
  17.  
  18. bruggink> These emacs binaries work fine when I'm sitting at the
  19. bruggink> (indigo) console, but when I log-in via telnet using a
  20. bruggink> Macintosh (which is not running X window) and try to use
  21. bruggink> emacs, I get the message:
  22.  
  23. bruggink> X server not responding.  Check your DISPLAY environment variable.
  24.  
  25.  
  26. bruggink> So evidently I'm sposed to turn off X (?) or have some kind of emacs
  27. bruggink> config file/command, or do I have to recompile emacs, or ???
  28.  
  29. `emacs -nw`
  30.  
  31. will make emacs talk ASCII instead of X. Alternatively, `unsetenv
  32. DISPLAY` early in your session, emacs will talk ASCII if there is no
  33. DISPLAY environment variable. The problem is that you have the DISPLAY
  34. environment variable set when when you have no X server. I don't know
  35. of any generic, portable way to always accurately set (or unset, as
  36. necessary) the DISPLAY variable. In our environment there are a few
  37. REMOTEHOSTs that are known to not have X server, so I special case in
  38. my ~/.cshrc:
  39.  
  40.     if ( ! $?DISPLAY ) then
  41.         if ($?REMOTEHOST) then
  42.             setenv DISPLAY ${REMOTEHOST}:0
  43.         else
  44.             setenv DISPLAY :0
  45.         endif
  46.         endif
  47.         ...
  48.         switch (`tty`)
  49.                 case /dev/tty[dmf]*:
  50.                 set dialup
  51.                 breaksw
  52.         endsw
  53.         if ($?REMOTEHOST) then
  54.                 if ($REMOTEHOST =~ dialback*) set dialup
  55.                 ...
  56.         endif
  57.         if ($?dialup) then
  58.                 unsetenv DISPLAY
  59.                 ...
  60.         endif
  61.  
  62. =-=-=
  63. --
  64.  Scott Henry <scotth@sgi.com> / Traveller on Dragon Wings
  65.  Networking Services,        / Help! My disclaimer is missing!
  66.  Silicon Graphics, Inc      / GIGO *really* means: Garbage in, Gospel Out
  67.