Subject: 28.0.60; [PATCH] Update termcap/terminfo to indicate 16-color support

From: Jim Porter <[email-masked]>
Date: Tue, 19 Oct 2021 16:49:53 -0700

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.
From cff4300e43cea788450c0f399677c3ff06942de8 Mon Sep 17 00:00:00 2001
From: Jim Porter <[email-masked]>
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