Whenever I use emacs on my OpenBSD 4.1 box (that's GNU Emacs installed
from the release package, version 21.4p3-no_x11), it does something odd:
on exit, the background color stays and gets used for all new text in
the shell.
For example; I'll start off using a black-on-white scheme in an xterm,
and then connect to the OBSD machine and run Emacs. Emacs will work
fine, but then when I exit it and return to the shell, the text
background will be stuck black. It won't go away until I either reset
the connection, or run a command that displays color ('ls -G' seems to
clear it).
It's not major, but it is annoying, and I'm at a loss for how to fix it.
Changing the settings in Emacs doesn't really seem to have any effect,
and it happens regardless of what terminal emulator I use to connect
(Apple's Terminal.app, rxvt, xterm, etc.). My TERM type is set to
xterm-color and CLICOLOR is 'true.' The machine is otherwise a fresh
install, nothing's on it but the base system, Emacs, and fileutils.
Has anyone ever had this happen before, or can tell me what's going on?
Thanks very much,
Kadin.
Setting $TERM to "xterm-color" is usually incorrect. It tells the
application that the terminal doesn't use the most recently-set color
when clearing the background.
It sort-of-works with Apple's terminal emulator, though there are
other problems with that - and in any case, OpenBSD's terminal database
is too old to have anything accurate for it.
For the others - there are correct entries in ncurses...
For reference
ftp://invisible-island.net/ncurses/terminfo.src.gz
--
Thomas E. Dickey
http://invisible-island.net
ftp://invisible-island.net
> Setting $TERM to "xterm-color" is usually incorrect. It tells the
> application that the terminal doesn't use the most recently-set color
> when clearing the background.
>
> It sort-of-works with Apple's terminal emulator, though there are
> other problems with that - and in any case, OpenBSD's terminal database
> is too old to have anything accurate for it.
For modern XFree86/X.org xterm, TERM=xterm-xfree86 is a better fit
than plain TERM=xterm or xterm-color. No idea about the Apple
thingy.
--
Christian "naddy" Weisgerber na...@mips.inka.de
> For modern XFree86/X.org xterm, TERM=xterm-xfree86 is a better fit
> than plain TERM=xterm or xterm-color. No idea about the Apple
> thingy.
Changing to "xterm-xfree86" seemed to solve the issue, in both a regular
X11 xterm and in Apple's Terminal.
Thanks!
-Kadin.