From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Rami =?UTF-8?Q?Ylim=C3=A4ki?= Newsgroups: gmane.emacs.bugs Subject: bug#30917: 26.0.91; True color emacs in termite Date: Sat, 24 Mar 2018 02:19:22 +0200 Message-ID: References: <83woy2haud.fsf@gnu.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="00000000000027247f05681d7eac" X-Trace: blaine.gmane.org 1521850694 28381 195.159.176.226 (24 Mar 2018 00:18:14 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sat, 24 Mar 2018 00:18:14 +0000 (UTC) Cc: 30917@debbugs.gnu.org To: Oliver Laslett Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Mar 24 01:18:10 2018 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ezWsr-0007Gl-KJ for geb-bug-gnu-emacs@m.gmane.org; Sat, 24 Mar 2018 01:18:09 +0100 Original-Received: from localhost ([::1]:40747 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ezWuu-0004MQ-Qh for geb-bug-gnu-emacs@m.gmane.org; Fri, 23 Mar 2018 20:20:16 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:34392) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ezWuj-0004Kp-Pq for bug-gnu-emacs@gnu.org; Fri, 23 Mar 2018 20:20:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ezWug-00009f-KZ for bug-gnu-emacs@gnu.org; Fri, 23 Mar 2018 20:20:05 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:42365) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1ezWug-00009V-GT for bug-gnu-emacs@gnu.org; Fri, 23 Mar 2018 20:20:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ezWug-0008LD-2T for bug-gnu-emacs@gnu.org; Fri, 23 Mar 2018 20:20:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Rami =?UTF-8?Q?Ylim=C3=A4ki?= Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 24 Mar 2018 00:20:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 30917 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 30917-submit@debbugs.gnu.org id=B30917.152185077332024 (code B ref 30917); Sat, 24 Mar 2018 00:20:02 +0000 Original-Received: (at 30917) by debbugs.gnu.org; 24 Mar 2018 00:19:33 +0000 Original-Received: from localhost ([127.0.0.1]:50262 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ezWuB-0008KR-Tu for submit@debbugs.gnu.org; Fri, 23 Mar 2018 20:19:32 -0400 Original-Received: from mail-ot0-f179.google.com ([74.125.82.179]:43818) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ezWu9-0008KD-6d for 30917@debbugs.gnu.org; Fri, 23 Mar 2018 20:19:30 -0400 Original-Received: by mail-ot0-f179.google.com with SMTP id m22-v6so15104647otf.10 for <30917@debbugs.gnu.org>; Fri, 23 Mar 2018 17:19:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=vincit.fi; s=ticniv; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=UjvxAsWbfLpJB2sFqOj12FYxrgOtOp10HsBF0GTgzuc=; b=GisoMJy+AclOQvH95KMU8fOPjJToGWE2jAG7ICPms/25BsAz3xPyEj38nXvyAxA4Y3 42+lGfMdWMCuiFEE7eu2cwyXBGeh7nMjZClGz4Q6psjcS6+hDz7YCtvdlq9+PVidzQDm b3ylqJ40LwzMJq897JPSbUSZljmZ37VYVBqOs= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=UjvxAsWbfLpJB2sFqOj12FYxrgOtOp10HsBF0GTgzuc=; b=iEgVPQoHPc4YEbYirvui5eNaSTAJ1uywk1qgj8jWK2SmtuOSUD6xxjupZpTZa+3sJE +VKxLVkXjk8Xj+Hnc+OhrufCGf4dBNjljuyH0+lY8mvrk6gSRDuGle7S55snl3Ys8aeG 0j5RpsL4+lgN+HpTYOcW0PDSdGOfJWKuOV5hc+w0jtRnop4ixmPhCHj2zygIYm6XjCEN Tf0qE+c9O2pcwatR1zEk3KOP5gn3ws5M3FwDy6po9yuDAi+7H8xMTTIoJITRkYToSMyd yQ7IftmB/QQbdN+/AOKVL59dISqatcm3VTL2xrAuAw+JgZPVcVeLWa6JM+L2j0P/k+ef 31iA== X-Gm-Message-State: AElRT7EWKO/aghsR4f4UVljegmJCWLuxUpSE9zNGeWJEO9v6qFtxUr4L wocACKOKLhm5E635zjc/uK1HTXEOSoUO3NlQA2lIrQ== X-Google-Smtp-Source: AIpwx4+SB4tELWuRgEiKvQocKmR2nAbEAZkbG9ES1ysrQf0WxkprDzKPuRSIv9PECXocwYCkNFAeGrDP7dxnojFR+zI= X-Received: by 2002:a9d:c90:: with SMTP id b16-v6mr583453otb.9.1521850763381; Fri, 23 Mar 2018 17:19:23 -0700 (PDT) Original-Received: by 10.201.30.198 with HTTP; Fri, 23 Mar 2018 17:19:22 -0700 (PDT) In-Reply-To: X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:144572 Archived-At: --00000000000027247f05681d7eac Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable It seems that by default Termite sets TERM=3Dxterm-termite, which doesn't support true color. However, since Termite uses libvte, it supports true color with semicolon separators, just like Gnome Terminal. If you have the latest Terminfo installed, you can launch Emacs with: TERM=3Dxterm-direct2 emacs -nw. At least that worked for me under Termite. If this doesn't work, there are more detailed instructions in Emacs FAQ node Common requests > Colors on a TTY. 2018-03-23 21:51 GMT+02:00 Oliver Laslett : > Rami, Eli, > > I=E2=80=99ve realised that calling =E2=80=98sudo=E2=80=99 is just resulti= ng in emacs with no theme > and colours are inherited from my terminal theme (.Xresources). But the > problem still remains that emacs is not detecting that termite is true > colour. I have checked that terminfo defines setfg and setbg. > > Thanks > > > > On 23 Mar 2018, at 19:04, Eli Zaretskii wrote: > > >> From: Oliver Laslett > >> Date: Fri, 23 Mar 2018 10:30:47 +0000 > >> > >> I have some odd behviour in emacs 26.0.91 with my color theme. > >> I am using termite terminal emulator (with true color support) and > >> when running `emacs -nw` I get a broken theme using reduced color set. > >> However, if I run `sudo emacs -nw` my theme shows correctly. > >> > >> As I understand, emacs determines true color support using terminfo. I= s > >> emacs calling a command that may require root user privileges? How cou= ld > >> I debug this (apologies, long term emacs user, first bug report!)? > > > > Rami, could you please look into this? > > > > Thanks. > --00000000000027247f05681d7eac Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
It seems that by default Termite sets TERM=3Dxterm-te= rmite, which doesn't support true color. However, since Termite uses li= bvte, it supports true color with semicolon separators, just like Gnome Ter= minal. If you have the latest Terminfo installed, you can launch Emacs with= : TERM=3Dxterm-direct2 emacs -nw. At least that worked for me under Termite= . If this doesn't work, there are more detailed instructions in Emacs F= AQ node Common requests >=C2=A0Colors on a TTY.

2018-03-23 21:51 GMT+02:00 Oliv= er Laslett <oliver@cytora.com>:
Rami, Eli,

I=E2=80=99ve realised that calling =E2=80=98sudo=E2=80=99 is just resulting= in emacs with no theme and colours are inherited from my terminal theme (.= Xresources). But the problem still remains that emacs is not detecting that= termite is true colour. I have checked that terminfo defines setfg and set= bg.

Thanks



On 23 Mar 2018, at 19:04, Eli Zaretskii <eliz@gnu.org> wrote:

>> From: Oliver Laslett <oliv= er@cytora.com>
>> Date: Fri, 23 Mar 2018 10:30:47 +0000
>>
>> I have some odd behviour in emacs 26.0.91 with my color theme.
>> I am using termite terminal emulator (with true color support) and=
>> when running `emacs -nw` I get a broken theme using reduced color = set.
>> However, if I run `sudo emacs -nw` my theme shows correctly.
>>
>> As I understand, emacs determines true color support using terminf= o. Is
>> emacs calling a command that may require root user privileges? How= could
>> I debug this (apologies, long term emacs user, first bug report!)?=
>
> Rami, could you please look into this?
>
> Thanks.

--00000000000027247f05681d7eac--