Kadin2048 <bsdq1.kadin@xoxy.net> wrote:
> I'm not totally sure if this is an 'OpenBSD question,' a 'ksh question,'
> or an 'emacs question,' so my apologies if this is misdirected. I'm
> hoping that someone can at least point me in the right direction here.
> 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.
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