home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.sys.sgi
- Path: sparky!uunet!convex!darwin.sura.net!mips!odin!sgi.com!scotth
- From: scotth@hoshi.corp.sgi.com (Scott Henry)
- Subject: Re: emacs via remote login
- In-Reply-To: bruggink@neep.engr.wisc.edu's message of 13 Aug 92 15: 52:17 GMT
- Message-ID: <SCOTTH.92Aug13102528@hoshi.corp.sgi.com>
- Sender: news@odin.corp.sgi.com (Net News)
- Nntp-Posting-Host: hoshi.corp.sgi.com
- Organization: Silicon Graphics Inc, Mountain View, CA
- References: <BRUGGINK.92Aug13105217@neep.engr.wisc.edu>
- Distribution: comp.sys.sgi
- Date: Thu, 13 Aug 1992 15:25:28 GMT
- Lines: 52
-
-
- >>>>> In article <BRUGGINK.92Aug13105217@neep.engr.wisc.edu>, bruggink@neep.engr.wisc.edu (Dennis Bruggink) writes:
-
- bruggink> These emacs binaries work fine when I'm sitting at the
- bruggink> (indigo) console, but when I log-in via telnet using a
- bruggink> Macintosh (which is not running X window) and try to use
- bruggink> emacs, I get the message:
-
- bruggink> X server not responding. Check your DISPLAY environment variable.
-
-
- bruggink> So evidently I'm sposed to turn off X (?) or have some kind of emacs
- bruggink> config file/command, or do I have to recompile emacs, or ???
-
- `emacs -nw`
-
- will make emacs talk ASCII instead of X. Alternatively, `unsetenv
- DISPLAY` early in your session, emacs will talk ASCII if there is no
- DISPLAY environment variable. The problem is that you have the DISPLAY
- environment variable set when when you have no X server. I don't know
- of any generic, portable way to always accurately set (or unset, as
- necessary) the DISPLAY variable. In our environment there are a few
- REMOTEHOSTs that are known to not have X server, so I special case in
- my ~/.cshrc:
-
- if ( ! $?DISPLAY ) then
- if ($?REMOTEHOST) then
- setenv DISPLAY ${REMOTEHOST}:0
- else
- setenv DISPLAY :0
- endif
- endif
- ...
- switch (`tty`)
- case /dev/tty[dmf]*:
- set dialup
- breaksw
- endsw
- if ($?REMOTEHOST) then
- if ($REMOTEHOST =~ dialback*) set dialup
- ...
- endif
- if ($?dialup) then
- unsetenv DISPLAY
- ...
- endif
-
- =-=-=
- --
- Scott Henry <scotth@sgi.com> / Traveller on Dragon Wings
- Networking Services, / Help! My disclaimer is missing!
- Silicon Graphics, Inc / GIGO *really* means: Garbage in, Gospel Out
-