xterm background colour

Thomas Dickey dickey at his.com
Thu Jan 25 11:15:40 UTC 2007


On Thu, 25 Jan 2007, applecom at inbox.ru wrote:

> Thomas Dickey <dickey at his.com> wrote:
>
>> On Wed, 24 Jan 2007, applecom at inbox.ru wrote:
>>
>>> Midnight Commander changes xterm background colour to black on exit if run
>>> from it. I think it's a bug.
>>
>> There are two places to look: the choice of terminal description,
>> and possibly a very old version of slang.  It's more likely the
>> terminal description, e.g., using something like "xterm-color",
>> which is almost always incorrect.
>
> I've written unclearly a bit. XTerm background color doesn't actually 
> change. MC fills out on exit entire XTerm window by black solid blocks 
> except bottom line and prompt symbols. After running 'clear' colour of 
> all the symbols becomes normal.

If the screen is black after the prompt (and stays that way until 
cleared), then that's a problem with mc not reinitializing the colors to 
the default.  It could still be a mismatch of the terminal description
(not using the "bce" back-color erase capability), but can also be a bug 
in the code.  The latter is less likely.

-- 
Thomas E. Dickey
http://invisible-island.net
ftp://invisible-island.net



More information about the mc-devel mailing list