Bug#723721: gnome-terminal: colors are swapped

Simon McVittie smcv at debian.org
Wed Jul 30 09:37:33 UTC 2014


unmerge 723721
severity 723721 normal
tags 723721 + moreinfo
thanks

On Thu, 19 Sep 2013 at 08:58:42 +0200, folkert wrote:
> Black and white are swapped.
> If a program (eg an ncurses application) selects black, then gnome-terminal draws with white instead.

Osamu Aoki merged this with #721489, but I'm not so sure that it's actually
the same issue.

Are you sure the program is selecting black, and not "the default colour"?
The two are separate, and there are different terminal escapes to
use them. Most terminals have white as their default foreground and black
as their default background (e.g. xterm), but gnome-terminal has its defaults
the other way round.

These shell commands should produce text in the indicated colours,
on all terminals:

printf '\e[1;37;40m(bright/bold white on black)\e[0m\n'
printf '\e[37;40m(dim white on black)\e[0m\n'
printf '\e[47;30m(black on white)\e[0m\n'
printf '\e[1;47;30m(dark grey on white)\e[0m\n'
printf '\e[0m(terminal default background and foreground)\e[0m\n'
printf '\e[1m(terminal default background and bright/bold foreground)\e[0m\n'

If they do not, please say which ones you think are wrong, and what colours
they come out as.

Have you changed the colours in "Profile Preferences"?
The "Text and Background Color" part of the Colors tab controls the
default foreground and background, while the "Palette" part controls
what happens if an application specifically asks for black or white or
whatever. To match applications' expectations, the first row of the Palette
should normally look something like this:

black, red, green, yellow/orange/brown, blue, purple, dark cyan, light grey

and the second row should be brighter versions of the top row.

Regards,
    S



More information about the pkg-gnome-maintainers mailing list