#723721 gnome-terminal: colors are swapped

Package:
gnome-terminal
Source:
gnome-terminal
Description:
GNOME terminal emulator application
Submitter:
folkert
Date:
2025-08-17 17:47:52 UTC
Severity:
normal
Tags:
#723721#5
Date:
2013-09-19 06:58:42 UTC
From:
To:
Black and white are swapped.
If a program (eg an ncurses application) selects black, then gnome-terminal draws with white instead.

#723721#16
Date:
2013-10-21 13:03:39 UTC
From:
To:
control: forcemerge 721489 723721

Hi,

gnome-terminal as installed is set to use system default color for text
and background.  Let's start it under different DE:

Under GNOME3, gnome-terminal is black text on white background.
Under XFce,   gnome-terminal is black text on black background.
Under KDE,    gnome-terminal is black text on black background.

If I configure this terminal to a custom setting by unchecking "use
color from system theme" under "Color" tab, things work as expected
(Green on Black) for all cases.  So problem is the default background
color setting value nterpretation is different for DEs.

This needs to be fixed properly.

(Under KDE, I started gnome-terminal from another console, terminal size
seems strange.  That is another story.)

Osamu

#723721#23
Date:
2013-10-21 13:03:39 UTC
From:
To:
control: forcemerge 721489 723721

Hi,

gnome-terminal as installed is set to use system default color for text
and background.  Let's start it under different DE:

Under GNOME3, gnome-terminal is black text on white background.
Under XFce,   gnome-terminal is black text on black background.
Under KDE,    gnome-terminal is black text on black background.

If I configure this terminal to a custom setting by unchecking "use
color from system theme" under "Color" tab, things work as expected
(Green on Black) for all cases.  So problem is the default background
color setting value nterpretation is different for DEs.

This needs to be fixed properly.

(Under KDE, I started gnome-terminal from another console, terminal size
seems strange.  That is another story.)

Osamu

#723721#44
Date:
2014-07-30 09:37:33 UTC
From:
To:
unmerge 723721
severity 723721 normal
tags 723721 + moreinfo
thanks

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

#723721#55
Date:
2014-07-30 10:16:49 UTC
From:
To:
Unfortunately I switched to xfce so I can't test anything, but:

...that would explain it. But from a programming point of view it is
counter-intuitive imho.


Folkert van Heusden

#723721#60
Date:
2014-07-31 15:53:33 UTC
From:
To:
Hi,

OK.

By the way, things work normal these days.  (I use gnome)  I use
system default now.  I think it was fixed by some fix just after my report.
...

I can not tell what was really broken.  At least, current GNOME terminal
have no problem for me.

These work nicely.

Osamu

#723721#67
Date:
2014-08-02 18:38:07 UTC
From:
To:
When gnome-terminal 3.12.3-2 (fixing #721489) reaches your mirror, it
should be possible to install and use it under any desktop environment.
Run "gnome-terminal" from the Xfce terminal if you don't see it in
your menus.

There's nothing to say that every terminal must be white-on-black.
If you turn off "Use system colours", gnome-terminal has options
that include white-on-black, green-on-black, black-on-white,
and even black-on-light-yellow (presumably some people find that
easier to read).

Which curses application had this symptom?

    S