From unknown Fri Sep 05 11:02:13 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#34606 <34606@debbugs.gnu.org> To: bug#34606 <34606@debbugs.gnu.org> Subject: Status: Emacs colors are off in screen sessions Reply-To: bug#34606 <34606@debbugs.gnu.org> Date: Fri, 05 Sep 2025 18:02:13 +0000 retitle 34606 Emacs colors are off in screen sessions reassign 34606 emacs submitter 34606 Cl=C3=A9ment Pit-Claudel severity 34606 normal tag 34606 notabug thanks From debbugs-submit-bounces@debbugs.gnu.org Thu Feb 21 09:56:33 2019 Received: (at submit) by debbugs.gnu.org; 21 Feb 2019 14:56:33 +0000 Received: from localhost ([127.0.0.1]:59749 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gwpm4-00034z-Oi for submit@debbugs.gnu.org; Thu, 21 Feb 2019 09:56:33 -0500 Received: from eggs.gnu.org ([209.51.188.92]:38992) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gwpm3-00034m-0s for submit@debbugs.gnu.org; Thu, 21 Feb 2019 09:56:31 -0500 Received: from lists.gnu.org ([209.51.188.17]:41892) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1gwplv-0007ds-Nd for submit@debbugs.gnu.org; Thu, 21 Feb 2019 09:56:25 -0500 Received: from eggs.gnu.org ([209.51.188.92]:53373) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gwplu-0003La-Nf for bug-gnu-emacs@gnu.org; Thu, 21 Feb 2019 09:56:23 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,FREEMAIL_FROM, URIBL_BLOCKED autolearn=disabled version=3.3.2 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gwplt-0007cO-E6 for bug-gnu-emacs@gnu.org; Thu, 21 Feb 2019 09:56:22 -0500 Received: from mail-qt1-x831.google.com ([2607:f8b0:4864:20::831]:44576) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gwplt-0007bs-4B for bug-gnu-emacs@gnu.org; Thu, 21 Feb 2019 09:56:21 -0500 Received: by mail-qt1-x831.google.com with SMTP id d2so6094182qti.11 for ; Thu, 21 Feb 2019 06:56:21 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=to:from:subject:message-id:date:user-agent:mime-version :content-language:content-transfer-encoding; bh=NKkJzLft44t4+dvOSxunrrjU5HqaSfgYUV2YHdEMTos=; b=fZkUKnNZiRnuWXVpXyVDfuHoox3VtfbkHnyU15acjGO3mFpDtvW7SwFLo9SVmol2yj dPhgs3DROD+GCEUoOn1m+U7GkkBPOcNF+OhbyDuK27NhjBp7MI/oDCtJDQizN/zcMC4b H0JuNr9MXqPLXPtQmd1eJeFeRCrS8BwjVnWSmYL2+Ag1ESQmsA8huHtrncACZaX+vbP8 CdPv+CWf7HMg04cbRbWMt+b5o3HiNhJ1uR5FHJG9r9KJysR58CFr/5lpbrH7ib90wR3/ cryvmfGtjmouflxvtthyeZOKcMvJrAA3vrA1+I+ogtYnUeNegSDPFw9MrnWLPzVJ8+JH ONUQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:to:from:subject:message-id:date:user-agent :mime-version:content-language:content-transfer-encoding; bh=NKkJzLft44t4+dvOSxunrrjU5HqaSfgYUV2YHdEMTos=; b=f/+fSNU1W/WT4GhJnflALSLi0pHUxRyuFmw3ki81Rm91WXxb7VjP6FWF8Ni3z1wR8p dIIzPovZ+V6JefCK4U2TZsTNiowbfiJY1kTSKo27gWKNFQPaSbHOA4fUMe7Is1eTFzW5 qwE1Gh0uXNSwJkB50ZtWKO3+OsPnY9GzMlAcFiWIXuW/cSD2MBp+7fwn7P8zuObqZmu9 D6lRvh4daLYjBQS/pr1N/rntTTJuguwtD0Iu4gSHzX+SVT6//IMAV3DD+1nVSxrPNw1u /HsjLaCJ3Xf+TnpTVL0dDT403ZadAFZGzitAt4taUXtvMSlO0GsuB7Aqr35opQ6grR6+ zipA== X-Gm-Message-State: AHQUAuYXFKAlFnN9Q4i5KTLqX5Y8JP3Zmg4y47oGbS/QmeJFuyjWm3x3 VDEeluyUvv9sh+cexoRBudIZoxj0 X-Google-Smtp-Source: AHgI3IZODNYEPZOPGThfNCpZ48YwcWHiLKdBpNuyWNKQSK9QKQqZBhjWYGcLW4zoORuoNndnOocaHQ== X-Received: by 2002:ac8:1754:: with SMTP id u20mr31424769qtk.190.1550760980122; Thu, 21 Feb 2019 06:56:20 -0800 (PST) Received: from ?IPv6:2601:184:4180:66e7:7153:e8ef:c4f6:5d09? ([2601:184:4180:66e7:7153:e8ef:c4f6:5d09]) by smtp.googlemail.com with ESMTPSA id v31sm16957658qtc.62.2019.02.21.06.56.19 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 21 Feb 2019 06:56:19 -0800 (PST) To: bug-gnu-emacs From: =?UTF-8?Q?Cl=c3=a9ment_Pit-Claudel?= Subject: Emacs colors are off in screen sessions Message-ID: <863a6869-ee18-f49d-68e3-2a1d86c648ed@gmail.com> Date: Thu, 21 Feb 2019 09:56:18 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.4.0 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Language: en-GB Content-Transfer-Encoding: 8bit X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:4864:20::831 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Spam-Score: 1.0 (+) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.0 (/) Hi all, I'm having issues with color selection and syntax highlighting in Emacs running in screen. I'm comparing the appearance of `emacs -nw -Q` on GNU / Linux Mint 18.3 (based on Ubuntu 16.04). In a newly created gnome-terminal window (TERM=xterm-256color), I get orange comments in *scratch*. In a newly created screen (TERM=screen), I get pale yellow comments in *scratch*. If I change TERM to either xterm-256color or screen-256color, I get the expected orange text. If I install the ncurses-term package, I get the same colors in gnome-terminal, but in a newly created screen TERM becomes screen.xterm-256color and I get red comments in *scratch*. If I change TERM to xterm-256color nothing changes, and if I change TERM to screen-256color I get the expected orange text (may be relevant: https://emacs.stackexchange.com/questions/20545/emacs-colors-being-set-differently-when-term-is-screen-256color-and-xterm-256) Is this all as expected? Why does changing to xterm-256color yield different results with or without ncurses-term? If I understand correctly, the reason why TERM changes after I install ncurses-term is that this package provides the screen.xterm-256color termcap entry, and then screen acts as documented: When screen tries to figure out a terminal name for itself, it first looks for an entry named "screen.", where is the contents of your $TERM variable. If no such entry exists, screen tries "screen" (…) Is there anything that Emacs could do differently to make things smoother? In particular, could TERM=screen.xterm-256color behave the same as TERM=screen-256color? Thanks, Clément. From debbugs-submit-bounces@debbugs.gnu.org Thu Feb 21 10:20:52 2019 Received: (at 34606) by debbugs.gnu.org; 21 Feb 2019 15:20:52 +0000 Received: from localhost ([127.0.0.1]:59757 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gwq9b-0003dy-Ui for submit@debbugs.gnu.org; Thu, 21 Feb 2019 10:20:52 -0500 Received: from eggs.gnu.org ([209.51.188.92]:45542) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gwq9a-0003dj-GH for 34606@debbugs.gnu.org; Thu, 21 Feb 2019 10:20:50 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]:54007) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gwq9V-0004Gl-9h; Thu, 21 Feb 2019 10:20:45 -0500 Received: from [176.228.60.248] (port=4351 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1gwq9U-0003KZ-Q4; Thu, 21 Feb 2019 10:20:45 -0500 Date: Thu, 21 Feb 2019 17:20:43 +0200 Message-Id: <83pnrlf9ro.fsf@gnu.org> From: Eli Zaretskii To: =?utf-8?Q?Cl=C3=A9ment?= Pit-Claudel In-reply-to: <863a6869-ee18-f49d-68e3-2a1d86c648ed@gmail.com> (message from =?utf-8?Q?Cl=C3=A9ment?= Pit-Claudel on Thu, 21 Feb 2019 09:56:18 -0500) Subject: Re: bug#34606: Emacs colors are off in screen sessions References: <863a6869-ee18-f49d-68e3-2a1d86c648ed@gmail.com> MIME-version: 1.0 Content-type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 34606 Cc: 34606@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) > From: Clément Pit-Claudel > Date: Thu, 21 Feb 2019 09:56:18 -0500 > > Is this all as expected? Why does changing to xterm-256color yield different results with or without ncurses-term? If I understand correctly, the reason why TERM changes after I install ncurses-term is that this package provides the screen.xterm-256color termcap entry, and then screen acts as documented: > > When screen tries to figure out a terminal name for itself, it first looks for an entry named "screen.", > where is the contents of your $TERM variable. If no such entry exists, screen tries "screen" (…) > > Is there anything that Emacs could do differently to make things smoother? In particular, could TERM=screen.xterm-256color behave the same as TERM=screen-256color? Emacs on a TTY doesn't control the colors in RGB terms, it just tells the terminal to display color number N. What you actually see as result is up to the terminfo entry and the terminal emulator, AFAIK mostly the latter. So I'd suggest to dig into 'screen's customizations to see how to affect the colors (I customized the colors of PuTTY to get something I like, for example). From debbugs-submit-bounces@debbugs.gnu.org Thu Feb 21 11:37:36 2019 Received: (at 34606) by debbugs.gnu.org; 21 Feb 2019 16:37:36 +0000 Received: from localhost ([127.0.0.1]:59777 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gwrLs-0005SD-2X for submit@debbugs.gnu.org; Thu, 21 Feb 2019 11:37:36 -0500 Received: from mail-qt1-f172.google.com ([209.85.160.172]:34794) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gwrLp-0005S0-Vx for 34606@debbugs.gnu.org; Thu, 21 Feb 2019 11:37:34 -0500 Received: by mail-qt1-f172.google.com with SMTP id w4so32254414qtc.1 for <34606@debbugs.gnu.org>; Thu, 21 Feb 2019 08:37:33 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=HV5itK7CkifTzDsD6uevytffVbO+1HjcZunZc4v+pnc=; b=mk9FZ9KdM9j3bsaRZu/KryOpDWWABwrSiu+M98ohsTxPJKJMQNidRblQVzyX2e39k4 sVp7TUDcxZdP81sna4SMTHSj05WIfOhIxMnam/kF71iFF/dp61ADj4iSvrrsvYN+AtTL IaPvy5lPlwkyqYJ9v9An2UXpEsmRgPxPxBqPx8GiL83/UdLXcc1qRITR6nhSd1qQ6N4G dZgZgr5gC+WxJB76cfooVeZ3S1oacFpqkmmH6QnTYwd7t4hhmsSIW7/QRXUQDJbJ0CPn jvrmEW9Hji+C4v5RzpgQ9rzqzk3yy4Xz9WGnGmOL1cVdgl6XlHNfbLvU9tk0FiHJxe// f51Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=HV5itK7CkifTzDsD6uevytffVbO+1HjcZunZc4v+pnc=; b=jcPhCU2wf9CvxMqhXKVaQc7PJDWJiMKPh0w9qYZjDz+OIhrQ9wAvwWg5UGN1zK8FZi LogQ0itVlcxApbJpGrgPZLCMVnwQFBuYVMepLrdSQDiOa34EFUZsjJqIVNnNCGaRTTce uSu1dIMQetxDC/l7cShgig2wWGcweGxpWsEVvgHcqa5YLMcMKXeieUGEYl/EJgxOSlE0 a6RVUWQLNJMxeKGs++CyC/ZBsc/VYGCYaS/gLRHn557jSj2lWcQQRj8oZS50r2iwuWgF IvFWo78EUGKIpDqP4sp+7kdgxBnFiCMLhMeFN5tdyey1/UOTBQj/Qul+aX6OsX/+fnx1 3fzg== X-Gm-Message-State: AHQUAubcO5JU42pMyEDGSh1JejwCEyLDg1KenEg3lVciTyyaarsm0NGO Co6dw5x9KahXT63Kzy1WqXtm+25V X-Google-Smtp-Source: AHgI3IakZgOy1nNlWPFDFIeapZ/60nzJjHNtCdedVggZbeYiMItiJ3Sg8xwneSqRmqbFRVY/IlOn+g== X-Received: by 2002:ac8:2427:: with SMTP id c36mr32835002qtc.124.1550767047331; Thu, 21 Feb 2019 08:37:27 -0800 (PST) Received: from ?IPv6:2601:184:4180:66e7:7153:e8ef:c4f6:5d09? ([2601:184:4180:66e7:7153:e8ef:c4f6:5d09]) by smtp.googlemail.com with ESMTPSA id v131sm12854270qka.95.2019.02.21.08.37.26 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 21 Feb 2019 08:37:26 -0800 (PST) Subject: Re: bug#34606: Emacs colors are off in screen sessions To: Eli Zaretskii References: <863a6869-ee18-f49d-68e3-2a1d86c648ed@gmail.com> <83pnrlf9ro.fsf@gnu.org> From: =?UTF-8?Q?Cl=c3=a9ment_Pit-Claudel?= Message-ID: Date: Thu, 21 Feb 2019 11:37:25 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.4.0 MIME-Version: 1.0 In-Reply-To: <83pnrlf9ro.fsf@gnu.org> Content-Type: text/plain; charset=utf-8 Content-Language: en-GB Content-Transfer-Encoding: 8bit X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 34606 Cc: 34606@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) On 21/02/2019 10.20, Eli Zaretskii wrote: >> From: Clément Pit-Claudel >> Date: Thu, 21 Feb 2019 09:56:18 -0500 >> >> Is this all as expected? Why does changing to xterm-256color yield different results with or without ncurses-term? If I understand correctly, the reason why TERM changes after I install ncurses-term is that this package provides the screen.xterm-256color termcap entry, and then screen acts as documented: >> >> When screen tries to figure out a terminal name for itself, it first looks for an entry named "screen.", >> where is the contents of your $TERM variable. If no such entry exists, screen tries "screen" (…) >> >> Is there anything that Emacs could do differently to make things smoother? In particular, could TERM=screen.xterm-256color behave the same as TERM=screen-256color? > > Emacs on a TTY doesn't control the colors in RGB terms, it just tells > the terminal to display color number N. What you actually see as > result is up to the terminfo entry and the terminal emulator, AFAIK > mostly the latter. So I'd suggest to dig into 'screen's > customizations to see how to affect the colors (I customized the > colors of PuTTY to get something I like, for example). I don't understand. If that is the case, how can changing the value of the TERM environment variable change the colors displayed by emacs? From debbugs-submit-bounces@debbugs.gnu.org Thu Feb 21 14:22:06 2019 Received: (at 34606) by debbugs.gnu.org; 21 Feb 2019 19:22:06 +0000 Received: from localhost ([127.0.0.1]:59825 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gwtv4-00016B-FQ for submit@debbugs.gnu.org; Thu, 21 Feb 2019 14:22:06 -0500 Received: from eggs.gnu.org ([209.51.188.92]:43577) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gwtv2-00015b-5P for 34606@debbugs.gnu.org; Thu, 21 Feb 2019 14:22:05 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]:58195) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gwtup-0005qd-3n; Thu, 21 Feb 2019 14:21:52 -0500 Received: from [176.228.60.248] (port=3610 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1gwtum-0005tD-2Y; Thu, 21 Feb 2019 14:21:49 -0500 Date: Thu, 21 Feb 2019 21:21:45 +0200 Message-Id: <83o975eyly.fsf@gnu.org> From: Eli Zaretskii To: =?utf-8?Q?Cl=C3=A9ment?= Pit-Claudel In-reply-to: (message from =?utf-8?Q?Cl=C3=A9ment?= Pit-Claudel on Thu, 21 Feb 2019 11:37:25 -0500) Subject: Re: bug#34606: Emacs colors are off in screen sessions References: <863a6869-ee18-f49d-68e3-2a1d86c648ed@gmail.com> <83pnrlf9ro.fsf@gnu.org> MIME-version: 1.0 Content-type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 34606 Cc: 34606@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) > Cc: 34606@debbugs.gnu.org > From: Clément Pit-Claudel > Date: Thu, 21 Feb 2019 11:37:25 -0500 > > > Emacs on a TTY doesn't control the colors in RGB terms, it just tells > > the terminal to display color number N. What you actually see as > > result is up to the terminfo entry and the terminal emulator, AFAIK > > mostly the latter. So I'd suggest to dig into 'screen's > > customizations to see how to affect the colors (I customized the > > colors of PuTTY to get something I like, for example). > > I don't understand. If that is the case, how can changing the value of the TERM environment variable change the colors displayed by emacs? Because the terminfo entry defines both the number of colors and the specific command to turn on a given color. (If that doesn't explain what you were asking about, maybe I didn't understand the question well enough.) From debbugs-submit-bounces@debbugs.gnu.org Thu Feb 21 17:06:44 2019 Received: (at 34606) by debbugs.gnu.org; 21 Feb 2019 22:06:44 +0000 Received: from localhost ([127.0.0.1]:59918 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gwwUO-00050y-Bi for submit@debbugs.gnu.org; Thu, 21 Feb 2019 17:06:44 -0500 Received: from mail-qk1-f182.google.com ([209.85.222.182]:37697) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gwwUM-00050l-I3 for 34606@debbugs.gnu.org; Thu, 21 Feb 2019 17:06:43 -0500 Received: by mail-qk1-f182.google.com with SMTP id m9so122449qkl.4 for <34606@debbugs.gnu.org>; Thu, 21 Feb 2019 14:06:42 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=ZFdrSl+W9qQVW+B+/i9FMi0ZdXLWskTodpmIZyibOIQ=; b=CF6wpI+qqmz3VA8jfMEAZXgDGJ98lgSblSLcsh4MBbaxwThKYEZjqg+tzJk0zlMZz/ G07RBudprYFJ9DGXAtXgX1iqjeT9v3dhRFpW6FbT0VUA8Pd8WyxTkM0F7+9b9fZpdkaa 8Lj1Lbr9Tb5+1/j6vCVS6hU+Ica7g1As8BuSAamEgBgHpFwOzJ11bSRvJ6XAw5niW65w zSQFRn6lZpMAncg2+nJBMGDyRrBzIYOucHsCvfcDNdqUULDiK+phw98kg8znKe5qYiI6 6w7cXJUzAngbN0EmhVxFYITtnLtnnzZqEf0/7OyqCuo2bPGqPzJOOpJb6u2ZUwMeKIV0 eLPw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=ZFdrSl+W9qQVW+B+/i9FMi0ZdXLWskTodpmIZyibOIQ=; b=cTR5P8GBI5g2sphA6vX1DWqPgrH9I3bjpxY+MgWOsLTuh0bF++azSgtiOTQvlaKLXh JrvS3clNWjAGWo3flBKKURe8E1Clb2q05k2Z01H0cZIJJ4JbVA/BMbKZTov425HNrWF6 gdgv/GZMdBbEDDxD7UpIWNvcopnT9fFmR1rJzQ9eMybbXdXh7lGiBi4orNTfE9ySYub4 Sb+WaK/JD2ekV+o+QREOlm4lfNPWIJaJkP0mhr59a0dKuWUVA0yx/4+sJZGGZtK0Yh73 4gtFqsGM38ERP/A3NpMUYz50IEQkOA1oyz1cabcH+UYnzV+xlgjIJRj6J4LC1zekl3Ar P9Ng== X-Gm-Message-State: AHQUAuaFUC12tMbmL/IuUIz5W/OS0yGsaEMb1djR2pzveqcrjOmtjMg+ 9otsnOXmn2zBGlGf63KYBR4wFdct X-Google-Smtp-Source: AHgI3IagoYsg1iKm/n2jcMefqn6dY/7tqklDsj0U+o0G2B2HG0/bA8csEe5Y+BWyvZxI2idmEjNwPg== X-Received: by 2002:a37:5bc1:: with SMTP id p184mr623448qkb.121.1550786796981; Thu, 21 Feb 2019 14:06:36 -0800 (PST) Received: from [128.30.9.114] (30-9-114.wireless.csail.mit.edu. [128.30.9.114]) by smtp.googlemail.com with ESMTPSA id v18sm39872qkj.13.2019.02.21.14.06.35 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 21 Feb 2019 14:06:36 -0800 (PST) Subject: Re: bug#34606: Emacs colors are off in screen sessions To: Eli Zaretskii References: <863a6869-ee18-f49d-68e3-2a1d86c648ed@gmail.com> <83pnrlf9ro.fsf@gnu.org> <83o975eyly.fsf@gnu.org> From: =?UTF-8?Q?Cl=c3=a9ment_Pit-Claudel?= Message-ID: <95bbfeeb-170e-9da5-6b1e-e85a3e466d08@gmail.com> Date: Thu, 21 Feb 2019 17:06:35 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.4.0 MIME-Version: 1.0 In-Reply-To: <83o975eyly.fsf@gnu.org> Content-Type: text/plain; charset=utf-8 Content-Language: en-GB Content-Transfer-Encoding: 8bit X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 34606 Cc: 34606@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) On 21/02/2019 14.21, Eli Zaretskii wrote: >> Cc: 34606@debbugs.gnu.org >> From: Clément Pit-Claudel >> Date: Thu, 21 Feb 2019 11:37:25 -0500 >> >>> Emacs on a TTY doesn't control the colors in RGB terms, it just tells >>> the terminal to display color number N. What you actually see as >>> result is up to the terminfo entry and the terminal emulator, AFAIK >>> mostly the latter. So I'd suggest to dig into 'screen's >>> customizations to see how to affect the colors (I customized the >>> colors of PuTTY to get something I like, for example). >> >> I don't understand. If that is the case, how can changing the value of the TERM environment variable change the colors displayed by emacs? > > Because the terminfo entry defines both the number of colors and the > specific command to turn on a given color. Thanks, I understand a bit better. Does that mean that there's a bug in the terminfo database for screen.xterm-256color that causes Emacs' request for a shade of yellow/orange to be displayed as bright red? From debbugs-submit-bounces@debbugs.gnu.org Fri Feb 22 02:14:16 2019 Received: (at 34606) by debbugs.gnu.org; 22 Feb 2019 07:14:16 +0000 Received: from localhost ([127.0.0.1]:47540 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gx52F-0001Ux-Ql for submit@debbugs.gnu.org; Fri, 22 Feb 2019 02:14:16 -0500 Received: from eggs.gnu.org ([209.51.188.92]:54955) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gx52D-0001Uj-3z for 34606@debbugs.gnu.org; Fri, 22 Feb 2019 02:14:13 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]:40135) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gx527-0003Xw-Nn; Fri, 22 Feb 2019 02:14:07 -0500 Received: from [176.228.60.248] (port=3759 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1gx527-0001HA-BB; Fri, 22 Feb 2019 02:14:07 -0500 Date: Fri, 22 Feb 2019 09:14:08 +0200 Message-Id: <83k1hsfg73.fsf@gnu.org> From: Eli Zaretskii To: =?utf-8?Q?Cl=C3=A9ment?= Pit-Claudel In-reply-to: <95bbfeeb-170e-9da5-6b1e-e85a3e466d08@gmail.com> (message from =?utf-8?Q?Cl=C3=A9ment?= Pit-Claudel on Thu, 21 Feb 2019 17:06:35 -0500) Subject: Re: bug#34606: Emacs colors are off in screen sessions References: <863a6869-ee18-f49d-68e3-2a1d86c648ed@gmail.com> <83pnrlf9ro.fsf@gnu.org> <83o975eyly.fsf@gnu.org> <95bbfeeb-170e-9da5-6b1e-e85a3e466d08@gmail.com> MIME-version: 1.0 Content-type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 34606 Cc: 34606@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) > Cc: 34606@debbugs.gnu.org > From: Clément Pit-Claudel > Date: Thu, 21 Feb 2019 17:06:35 -0500 > > Thanks, I understand a bit better. Does that mean that there's a bug in the terminfo database for screen.xterm-256color that causes Emacs' request for a shade of yellow/orange to be displayed as bright red? No, I think the more probable cause is how the colors are configured in each terminal emulator, in this case 'screen'. The translation of a given TTY color to X RGB values are entirely controlled by how the terminal emulator is configured, hopefully this is customizable in some way and not hard-coded in the emulator's code. I suggest to dig into the docs of each emulator and perhaps search the net for pertinent keywords. Or maybe asking on some relevant forum. From debbugs-submit-bounces@debbugs.gnu.org Tue Jul 02 22:32:17 2019 Received: (at 34606) by debbugs.gnu.org; 3 Jul 2019 02:32:17 +0000 Received: from localhost ([127.0.0.1]:48223 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hiV4D-0001xu-36 for submit@debbugs.gnu.org; Tue, 02 Jul 2019 22:32:17 -0400 Received: from mail-wr1-f45.google.com ([209.85.221.45]:35436) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hiV4B-0001sY-D8 for 34606@debbugs.gnu.org; Tue, 02 Jul 2019 22:32:15 -0400 Received: by mail-wr1-f45.google.com with SMTP id c27so877468wrb.2 for <34606@debbugs.gnu.org>; Tue, 02 Jul 2019 19:32:15 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to:cc :content-transfer-encoding; bh=7WXW0USY8OnG433hRwVZKDjVDwSMdpZA5MS5g38D/lI=; b=YxCiWNXfEoo327dknFlTrJF3jp2M79GQ7VFEI+xT2YzY/XyccLMnuQ23fRfIXHJcdB W9tTIN43dBewTQ0KemexGC17Oh4O8B31R4Q18glGz/hEBGaeQZfhRVdHAS7JGfUtFrKz /Fgp9EJnE4m0x0ywZ7vQQ8lgvrDYQyFuxBAw1cOLrzKS9clcLf97pFkkBFnkRZ3Q+4CH 8g4bjSOPmLdi3ZDmWcVhXYkzJ5M0W4DZxwcD0i8ZW0Sq4D3hgK30qv3AUJvJXuvq/Nof 5BMnBLJaFbcKKAjkyPf57w+FIq5NjATb/0XNMgnIgBGETSWQ0tzu4Hyk4Xs6Rbi68pMy V/wA== X-Gm-Message-State: APjAAAXNoFFQVGIY8FRrUZVtqfxz9xAy0eFIlzcL8eoXlBHzDsnb9APw T+KhvJoJjPIrrxdNNuaHV0m0Fe6Ntb5qABl+cbA= X-Google-Smtp-Source: APXvYqwObgVpvTn4hnLZ6EwaMgzaK81DhpRnOJ4sXKFhlghz4hvAjK8/Ha004aof6z78d3jWXeCnVoBBurkSUIZlBOk= X-Received: by 2002:a5d:4609:: with SMTP id t9mr10324624wrq.85.1562121127988; Tue, 02 Jul 2019 19:32:07 -0700 (PDT) MIME-Version: 1.0 From: Stefan Kangas Date: Wed, 3 Jul 2019 04:31:56 +0200 Message-ID: Subject: Re: bug#34606: Emacs colors are off in screen sessions To: Eli Zaretskii Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Score: 0.1 (/) X-Debbugs-Envelope-To: 34606 Cc: 34606@debbugs.gnu.org, =?UTF-8?Q?Cl=C3=A9ment_Pit=2DClaudel?= X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.9 (/) tags 34606 + notabug close 34606 quit Eli Zaretskii writes: >> Cc: 34606@debbugs.gnu.org >> From: Cl=C3=A9ment Pit-Claudel >> Date: Thu, 21 Feb 2019 17:06:35 -0500 >> >> Thanks, I understand a bit better. Does that mean that there's a bug in= the terminfo database for screen.xterm-256color that causes Emacs' request= for a shade of yellow/orange to be displayed as bright red? > > No, I think the more probable cause is how the colors are configured > in each terminal emulator, in this case 'screen'. > > The translation of a given TTY color to X RGB values are entirely > controlled by how the terminal emulator is configured, hopefully this > is customizable in some way and not hard-coded in the emulator's code. > I suggest to dig into the docs of each emulator and perhaps search the > net for pertinent keywords. Or maybe asking on some relevant forum. It doesn't look like there is much more to do here, so I'm closing this as notabug. If anyone disagrees, feel free to reopen. Thanks, Stefan Kangas From unknown Fri Sep 05 11:02:13 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Wed, 31 Jul 2019 11:24:04 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator