From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Oliver Laslett Newsgroups: gmane.emacs.bugs Subject: bug#30917: 26.0.91; True color emacs in termite Date: Mon, 26 Mar 2018 11:12:45 +0100 Message-ID: References: <83woy2haud.fsf@gnu.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="001a114e53c8e683e605684e03c3" X-Trace: blaine.gmane.org 1522059200 15779 195.159.176.226 (26 Mar 2018 10:13:20 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 26 Mar 2018 10:13:20 +0000 (UTC) Cc: 30917@debbugs.gnu.org To: Rami =?UTF-8?Q?Ylim=C3=A4ki?= Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Mar 26 12:13:16 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 1f0P7s-0003zf-7m for geb-bug-gnu-emacs@m.gmane.org; Mon, 26 Mar 2018 12:13:16 +0200 Original-Received: from localhost ([::1]:55617 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1f0P9v-0006l0-Ff for geb-bug-gnu-emacs@m.gmane.org; Mon, 26 Mar 2018 06:15:23 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:60404) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1f0P7j-00058r-0B for bug-gnu-emacs@gnu.org; Mon, 26 Mar 2018 06:13:10 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1f0P7f-0007FV-0h for bug-gnu-emacs@gnu.org; Mon, 26 Mar 2018 06:13:06 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:45742) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1f0P7e-0007FA-T0 for bug-gnu-emacs@gnu.org; Mon, 26 Mar 2018 06:13:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1f0P7e-0004PF-H6 for bug-gnu-emacs@gnu.org; Mon, 26 Mar 2018 06:13:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Oliver Laslett Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 26 Mar 2018 10:13: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.152205917316922 (code B ref 30917); Mon, 26 Mar 2018 10:13:02 +0000 Original-Received: (at 30917) by debbugs.gnu.org; 26 Mar 2018 10:12:53 +0000 Original-Received: from localhost ([127.0.0.1]:53639 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1f0P7V-0004Os-CJ for submit@debbugs.gnu.org; Mon, 26 Mar 2018 06:12:53 -0400 Original-Received: from mail-vk0-f47.google.com ([209.85.213.47]:39575) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1f0P7T-0004Oe-CG for 30917@debbugs.gnu.org; Mon, 26 Mar 2018 06:12:51 -0400 Original-Received: by mail-vk0-f47.google.com with SMTP id n124so887347vkd.6 for <30917@debbugs.gnu.org>; Mon, 26 Mar 2018 03:12:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cytora-com.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=O2xLHMPg7fZWm/Dz5RcgZfun+/f24Kly+1oii0lOymc=; b=eiuH1q5md1I1hC7LMMFI73vcEFFDacdLj7B+UUYBM4C32PlcFAZU2z5PKsM1A7meyf 0Hv0aY2VLCHJ0GQFpBFkeDHmbubBzlRa463eXhue8MewysUfFPxzQgsr+9j+itV95/Mc 3zYyf+6ygxdwbX6LLEy9iJJl+Oq9YICHSbTVY+tG61z/h6AkU9f5uxHSVjeuzNuFm9JS nBVHe+hwKsp5bacKmAZ8OvGAQMgS9KfKlRe783i3+MVMgclsZxKDfp5yHK/v5lNpEIMs 04+Y3brSfZQs9l4mKd9w7XdHIdHAVcL/eBitURO3yeTNa9yyy4mhiLx7fVvskcRaKqwn YGtQ== 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=O2xLHMPg7fZWm/Dz5RcgZfun+/f24Kly+1oii0lOymc=; b=nBaRK/jWT4HHq1PkJnJA++oCU+wHrPgVTTfHSXrh7r2rEhGxfYNlDzX+dzxLaVyryY lUT+2N8jcTIp1UWnLqlWo1/9KYw7TGq43GM4QAAlg27CvnWTy7TMLV/qq2gaVMhEtz3+ ZuePnGV6gCzYhNMRfwYkIhMOMTYLtDJQPMnFq7lQ8gOK87WTj61ZwG+vcgl6gTzOEVDm rVwQGsC7LWCWp1w8R2SRGYC9i1s41LPD1g/6XlDvwiAfEFhJYo49BR6scc2lDTnveDKQ wgrB7AwkchU9rFC3BnX3XUKHP2qb6cIIUUwttpCqvVFj07zsr7FM2wBqNWsMf24IGZYu /lNw== X-Gm-Message-State: AElRT7GqqLqERhWbiYzoerp17Bp1IEDZrDw2MSy7bQNLU+GSWlKHAcWp vpWd2PbwCnk1UrPI0cAcUdAu+816My5HuOCA3o/nlw== X-Google-Smtp-Source: AG47ELucQtlmPr/5akwrzym/yBpNf9roID3IjKmrfEEENm8jJ25sMoON9AkxSY56grk+OtGyRHUmsfgwtM03gJNALhc= X-Received: by 10.31.210.3 with SMTP id j3mr23835530vkg.105.1522059165717; Mon, 26 Mar 2018 03:12:45 -0700 (PDT) Original-Received: by 10.176.97.130 with HTTP; Mon, 26 Mar 2018 03:12:45 -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:144623 Archived-At: --001a114e53c8e683e605684e03c3 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Rami, using TERM=3Dxterm-direct2 worked! I tried many other options without success. Many thanks, it seems that I have true colours. The only difference is that when I exit and return to the terminal, my prompt appears at the bottom and emacs remains in the terminal buffer (i.e. i have to call $ clear to clear the terminal buffer). I have tested and this is also happens with any command (e.g. `less`) so I guess related to using TERM=3Dxterm-direct2 and not emacs related. Many thanks Oliver On Sat, Mar 24, 2018 at 12:19 AM, Rami Ylim=C3=A4ki wrote: > 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 th= e > latest Terminfo installed, you can launch Emacs with: TERM=3Dxterm-direct= 2 > emacs -nw. At least that worked for me under Termite. If this doesn't wor= k, > 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 result= ing in emacs with no >> theme and colours are inherited from my terminal theme (.Xresources). Bu= t >> the problem still remains that emacs is not detecting that termite is tr= ue >> 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. = 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. >> > > --001a114e53c8e683e605684e03c3 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Rami, using TERM=3Dxterm-direct2 worked! I tried= many other options without success. Many thanks, it seems that I have true= colours. The only difference is that when I exit and return to the termina= l, my prompt appears at the bottom and emacs remains in the terminal buffer= (i.e. i have to call $ clear to clear the terminal buffer). I have tested = and this is also happens with any command (e.g. `less`) so I guess related = to using TERM=3Dxterm-direct2 and not emacs related.

Many tha= nks
Oliver

On Sat, Mar 24, 2018 at 12:19 AM, Rami Ylim=C3=A4ki <ra= mi.ylimaki@vincit.fi> wrote:
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 T= erminal. If you have the latest Terminfo installed, you can launch Emacs wi= th: TERM=3Dxterm-direct2 emacs -nw. At least that worked for me under Termi= te. If this doesn't work, there are more detailed instructions in Emacs= FAQ node Common requests >=C2=A0Colors on a TTY.

2018= -03-23 21:51 GMT+02:00 Oliver 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 <oliver@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.


--001a114e53c8e683e605684e03c3--