Date: Thu, 08 Aug 2024 00:10:45 +0000 From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 280679] [termcap] [patch] bold colors broken in ncurses apps for xterm-256color Message-ID: <bug-280679-227@https.bugs.freebsd.org/bugzilla/>
next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D280679 Bug ID: 280679 Summary: [termcap] [patch] bold colors broken in ncurses apps for xterm-256color Product: Base System Version: 14.1-RELEASE Hardware: Any OS: Any Status: New Severity: Affects Some People Priority: --- Component: conf Assignee: bugs@FreeBSD.org Reporter: cullum@sacredheartsc.com Created attachment 252599 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D252599&action= =3Dedit remove AB=3D and AF=3D values from xterm-256color termcap entry I noticed that when setting my TERM environment variable to xterm-256color,= the bright (bold) xterm colors (color9-color14) no longer worked for ncurses ap= ps in Xterm. I found this old Usenet post which seems to imply that some Linux distros m= ade a similar patch to their termcap databases long ago: https://tmux-users.narkive.com/o6kjUfcW/bold-colours-and-xterm-256color#pos= t10 The attached patch for /etc/termcap allows the "bright" colors to display properly in ncurses apps again. To reproduce: 1. Install profanity (xmpp ncurses app): pkg install profanity 2. In an XTerm, run `TERM=3Dxterm-256color profanity` 3. At the profanity prompt, type `/theme colours` and press <Enter> 4. Notice that the "bold_" colors are rendered with the same color as the non-bold colors. To apply the fix: 1. Apply the attached patch to /etc/termcap 2. Run `cap_mkdb -f /usr/share/misc/termcap /etc/termcap` 3. Repat the above steps in profanity and notice that the bold colors are n= ow displayed properly. --=20 You are receiving this mail because: You are the assignee for the bug.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-280679-227>