From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Stefan Kangas Newsgroups: gmane.emacs.bugs Subject: bug#33182: 26.1; Support for Suckless st(simple terminal) Date: Thu, 3 Oct 2019 02:59:33 +0200 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="000000000000edb9c30593f7190a" Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="112705"; mail-complaints-to="usenet@blaine.gmane.org" Cc: "D. Ebling" , 33182@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Oct 03 03:00:16 2019 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1iFpTc-000TCN-5R for geb-bug-gnu-emacs@m.gmane.org; Thu, 03 Oct 2019 03:00:16 +0200 Original-Received: from localhost ([::1]:60312 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iFpTa-0006I3-BR for geb-bug-gnu-emacs@m.gmane.org; Wed, 02 Oct 2019 21:00:14 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:60005) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iFpTQ-0006G6-5g for bug-gnu-emacs@gnu.org; Wed, 02 Oct 2019 21:00:05 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iFpTO-0006bg-T9 for bug-gnu-emacs@gnu.org; Wed, 02 Oct 2019 21:00:04 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:57963) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iFpTO-0006bT-Pm for bug-gnu-emacs@gnu.org; Wed, 02 Oct 2019 21:00:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1iFpTO-00062T-3R for bug-gnu-emacs@gnu.org; Wed, 02 Oct 2019 21:00:02 -0400 X-Loop: help-debbugs@gnu.org In-Reply-To: Resent-From: Stefan Kangas Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 03 Oct 2019 01:00:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 33182 X-GNU-PR-Package: emacs Original-Received: via spool by 33182-submit@debbugs.gnu.org id=B33182.157006439323169 (code B ref 33182); Thu, 03 Oct 2019 01:00:02 +0000 Original-Received: (at 33182) by debbugs.gnu.org; 3 Oct 2019 00:59:53 +0000 Original-Received: from localhost ([127.0.0.1]:38551 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iFpTE-00061d-Rs for submit@debbugs.gnu.org; Wed, 02 Oct 2019 20:59:53 -0400 Original-Received: from mail-pl1-f195.google.com ([209.85.214.195]:39215) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iFpTC-00061Q-I3 for 33182@debbugs.gnu.org; Wed, 02 Oct 2019 20:59:51 -0400 Original-Received: by mail-pl1-f195.google.com with SMTP id s17so661841plp.6 for <33182@debbugs.gnu.org>; Wed, 02 Oct 2019 17:59:50 -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; bh=KCRB/QlhdaCGe4PgXd22Yv7qJ+GdhAaWyaQt27u4WQw=; b=kD9geyZguj9DC61sRP5OZTAydzxesBxTWTiJugNO2V4A5QdpNPwuvejfxzuuVpfXqd SrbHxqUOwuo1Fqu41dSq0Pqpnu6fIsj0xv5MKUbsiy8E3KoGVGfYQ0uZyKtwmUcXeBd+ Cyd0IdoZd+8OKuMQXFX/eTTCQYhemiAyEkhFh37bm5YKdRH/LPYYm+5aAxrtVCQ1z0Ln V5n2/px5mNQ7OMQeDYqOJMfDYhwR6Av4Ft6qIwt875fXxiwMiMcm7K8VwJhb0sPCzSCH E5mGj4L5W0FBvlzVr4cLg5VRt9RNPKw0D4iMP8IQ4W27UPr3g5ZBcwCbJRYTAtDT2Cd6 SRiQ== X-Gm-Message-State: APjAAAXV9NtPwvs4vAie8cnPxcu+QChcIHAbJ3snrchmp14kbv4yMoij QWvM+lVsgRd7EzJ33jLfKnYCdEAZDlO7wrfiG50= X-Google-Smtp-Source: APXvYqzK05rPOjIJAtSsSZcpdXv1I9uGT8RO7+5Suq1+R5sLJs4m9WAXVIfW6Mqd1n0nEKZsKCbFrCsz3vW3XZmBuoo= X-Received: by 2002:a17:902:6b88:: with SMTP id p8mr2720406plk.251.1570064384753; Wed, 02 Oct 2019 17:59:44 -0700 (PDT) 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: 209.51.188.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:168189 Archived-At: --000000000000edb9c30593f7190a Content-Type: text/plain; charset="UTF-8" Eli Zaretskii writes: >> From: "D. Ebling" >> Date: Sat, 27 Oct 2018 20:15:26 -0300 >> >> Emacs on st detects 8 colors support, and st supports 256 and >> 24-bits colors. Opening a file with "TERM=xterm-256colors emacs -q -nw >> foo.bar" or using "(add-to-list 'term-file-aliases '("st-256color" >> . "xterm"))" resolves the colors issue but introduces a 5 seconds delay >> to load the file, if i open like this and after use only "emacs -q -nw >> foo.bar" the 256 colors work and there's no delay to load the file, but >> this only works if i used "TERM=xterm-256color" before. st version is 0.8.1. > > I think this requires a new st.el file in the lisp/term/ directory, > which will tell Emacs that st handles 256 colors, but not the extended > xterm commands (whose queries I'm guessing are the reason for the > delay). > > Patches welcome. I couldn't reproduce the issue with the delay neither on st version 0.8.1 or 0.8.2. In any case, I took a simplistic stab at this. I can now run "emacs -Q -nw" without specifying term and I get 256 colors as shown by M-x list-colors-display. Could you test it and see if it works for you? You didn't mention which version of Emacs you're using, but I would recommend to test this on the current master branch (the development version 27.0.50). Best regards, Stefan Kangas --000000000000edb9c30593f7190a Content-Type: text/x-patch; charset="US-ASCII"; name="0001-Add-term-st.el.patch" Content-Disposition: attachment; filename="0001-Add-term-st.el.patch" Content-Transfer-Encoding: base64 Content-ID: X-Attachment-Id: f_k19zrb3u1 RnJvbSBkZmI2ZjQzYjE3NDZmYjIxZGZlOWE3ZmViNjA2MDdjYzU0NzQ5YTRlIE1vbiBTZXAgMTcg MDA6MDA6MDAgMjAwMQpGcm9tOiBTdGVmYW4gS2FuZ2FzIDxzdGVmYW5rYW5nYXNAZ21haWwuY29t PgpEYXRlOiBUaHUsIDMgT2N0IDIwMTkgMDI6NDY6NDQgKzAyMDAKU3ViamVjdDogW1BBVENIXSBB ZGQgdGVybS9zdC5lbAoKVGhpcyBpcyBhIGNvcHkgb2YgdGVybS9rb25zb2xlLmVsIHdpdGgga29u c29sZSAtPiBzdC4KKiBsaXNwL3Rlcm0vc3QuZWw6IE5ldyBmaWxlLgotLS0KIGxpc3AvdGVybS9z dC5lbCB8IDEyICsrKysrKysrKysrKwogMSBmaWxlIGNoYW5nZWQsIDEyIGluc2VydGlvbnMoKykK IGNyZWF0ZSBtb2RlIDEwMDY0NCBsaXNwL3Rlcm0vc3QuZWwKCmRpZmYgLS1naXQgYS9saXNwL3Rl cm0vc3QuZWwgYi9saXNwL3Rlcm0vc3QuZWwKbmV3IGZpb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