Subject: Re: bug#29716: 25.1; Wrong brackground-mode on gnome-terminal

From: Noam Postavsky <[email-masked]>
Date: Thu, 14 Dec 2017 20:13:45 -0500

severity 29716 minor
severity 29473 minor
quit

semente <[email-masked]> writes:

> On gnome-terminal 3.22.2 (Debian Stretch), for some reason, Emacs is
> setting the background-mode to light when I'm running a dark
> background. On xterm or ttys it works fine.
>
> The only way I found to fix this is by forcing a dark mode, as for
> example:
>
>  (setq frame-background-mode 'dark)
>  (set-background-color "black")
>  (set-foreground-color "white")

What do you get from running

    printf '\e[>0c'

and

    printf '\e]11;?\e\'

in the shell from gnome-terminal?

See also https://debbugs.gnu.org/cgi/bugreport.cgi?users=emacs;bug=29473#11