unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#51297: 28.0.60; [PATCH] Update termcap/terminfo to indicate 16-color support
@ 2021-10-19 23:49 Jim Porter
  2021-10-20  8:29 ` miha--- via Bug reports for GNU Emacs, the Swiss army knife of text editors
  0 siblings, 1 reply; 8+ messages in thread
From: Jim Porter @ 2021-10-19 23:49 UTC (permalink / raw)
  To: 51297

[-- Attachment #1: Type: text/plain, Size: 286 bytes --]

In bug#50179, I added support for bright ANSI colors, but neglected to 
update the termcap/terminfo settings to indicate this. Attached is a 
patch to do so. Note that it doesn't need to be merged into Emacs 29, 
since bug#50806 already fixed this when adding 256/24-bit color support.

[-- Attachment #2: 0001-Update-termcap-terminfo-to-indicate-16-color-support.patch --]
[-- Type: text/plain, Size: 1893 bytes --]

From cff4300e43cea788450c0f399677c3ff06942de8 Mon Sep 17 00:00:00 2001
From: Jim Porter <jporterbugs@gmail.com>
Date: Tue, 19 Oct 2021 16:42:59 -0700
Subject: [PATCH] Update termcap/terminfo to indicate 16-color support.

* etc/e/eterm-color.ti:
* lisp/term.el (term-termcap-format): Indicate 16-color support.
Do not merge to master.
---
 etc/e/eterm-color    | Bin 1179 -> 1179 bytes
 etc/e/eterm-color.ti |   2 +-
 lisp/term.el         |   2 +-
 3 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/etc/e/eterm-color b/etc/e/eterm-color
index bd3f5003ae620db49b89a2c1387b0ba1c836f4f1..441316517d77a1421b2d2118e47e7d112515b8d3 100644
GIT binary patch
delta 12
TcmbQuIh%7r4Wq!uS~(T~8pi{+

delta 12
TcmbQuIh%7r4I{_KS~(T~8lMBM

diff --git a/etc/e/eterm-color.ti b/etc/e/eterm-color.ti
index a6ef814990..4cc4a3c95e 100644
--- a/etc/e/eterm-color.ti
+++ b/etc/e/eterm-color.ti
@@ -9,7 +9,7 @@ eterm-color|Emacs term.el terminal emulator term-protocol-version 0.96,
 # Any change to this file should be done at the same time with a
 # corresponding change to the TERMCAP environment variable in term.el.
 # Comments in term.el specify where each of these capabilities is implemented.
-	colors#8,
+	colors#16,
 	cols#80,
 	lines#24,
 	pairs#64,
diff --git a/lisp/term.el b/lisp/term.el
index e76eb77647..30f26b7ee3 100644
--- a/lisp/term.el
+++ b/lisp/term.el
@@ -1584,7 +1584,7 @@ term-termcap-format
 :so=\\E[7m:se=\\E[m:us=\\E[4m:ue=\\E[m:md=\\E[1m:mr=\\E[7m:me=\\E[m\
 :UP=\\E[%%dA:DO=\\E[%%dB:LE=\\E[%%dD:RI=\\E[%%dC\
 :kl=\\EOD:kd=\\EOB:kr=\\EOC:ku=\\EOA:kN=\\E[6~:kP=\\E[5~:@7=\\E[4~:kh=\\E[1~\
-:mk=\\E[8m:cb=\\E[1K:op=\\E[39;49m:Co#8:pa#64:AB=\\E[4%%dm:AF=\\E[3%%dm:cr=^M\
+:mk=\\E[8m:cb=\\E[1K:op=\\E[39;49m:Co#16:pa#64:AB=\\E[4%%dm:AF=\\E[3%%dm:cr=^M\
 :bl=^G:do=^J:le=^H:ta=^I:se=\\E[27m:ue=\\E[24m\
 :kb=^?:kD=^[[3~:sc=\\E7:rc=\\E8:r1=\\Ec:"
   ;; : -undefine ic
-- 
2.25.1


^ permalink raw reply related	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2021-11-05  2:27 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-10-19 23:49 bug#51297: 28.0.60; [PATCH] Update termcap/terminfo to indicate 16-color support Jim Porter
2021-10-20  8:29 ` miha--- via Bug reports for GNU Emacs, the Swiss army knife of text editors
2021-10-20 19:50   ` Jim Porter
2021-10-20 21:06     ` miha--- via Bug reports for GNU Emacs, the Swiss army knife of text editors
2021-10-30 15:53       ` Stefan Kangas
2021-11-04 23:20   ` Lars Ingebrigtsen
2021-11-04 23:47     ` Jim Porter
2021-11-05  2:27       ` Lars Ingebrigtsen

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).