[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: stty isn't a terminal
From: |
Peter Dyballa |
Subject: |
Re: stty isn't a terminal |
Date: |
Sat, 19 Mar 2005 15:15:34 +0100 |
Am 19.03.2005 um 00:19 schrieb Stefan Monnier:
if (! $?TERM) setenv TERM xterm
This is bogus.
if (($TERM == xterm) | ($TERM == nxterm)) then
setenv TERM xterm-color
stty erase '^?'
endif
This is also bogus because TERM might be defined even if you're not on
a tty.
Yes, of course, I know! I had to do this non-sense earlier for Mac OS X
to have GNU Emacs work in Apple's Terminal application with colours. I
checked today that in Mac OS X 10.3(.8) it's not necesary any more.
IIRC from my csh days, you should check $tty before using stty.
Yes, tcsh sets $tty ...
Is it a bug that GNU Emacs 22 from CVS does not set TERM for
shell-mode-on-region?
It would be a bug to set TERM in such a case.
Oh yes, that's right, of course!
--
Greetings
Pete