Jim Porter writes: > 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. > - colors#8, > + colors#16, True, we now do support 16 colors, but the setab and setaf capnames have to be adjusted as well. For setaf, for example, the first 8 colors are specified with sequences \e[30m - \e[37m, and the next 8 colors are specified with sequences \e[90m - \e[97m. There is a "gap". See the attached patch, which adjusts setab and setaf. > @@ -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 As for termcap, I don't think there is a way to specify this gap. I think it's best to just leave this unchanged. In bug#50806, I did adjust the number of colors in termcap, but I could do it because I added a way to specify colors without the gap (with \e[38;2;0m - \e[38;2;15m for setaf). In conclusion, I think we should update the terminfo, changing colors, setab and setaf, and leave term.el unchanged. Patch attached.