[Bug 280679] [termcap] [patch] bold colors broken in ncurses apps for xterm-256color
- Reply: bugzilla-noreply_a_freebsd.org: "[Bug 280679] [termcap] [patch] bold colors broken in ncurses apps for xterm-256color"
- Reply: bugzilla-noreply_a_freebsd.org: "[Bug 280679] [termcap] [patch] bold colors broken in ncurses apps for xterm-256color"
- Reply: bugzilla-noreply_a_freebsd.org: "[Bug 280679] [termcap] [patch] bold colors broken in ncurses apps for xterm-256color"
- Reply: bugzilla-noreply_a_freebsd.org: "[Bug 280679] [termcap] [patch] bold colors broken in ncurses apps for xterm-256color"
- Reply: bugzilla-noreply_a_freebsd.org: "[Bug 280679] [termcap] [patch] bold colors broken in ncurses apps for xterm-256color"
- Reply: bugzilla-noreply_a_freebsd.org: "[Bug 280679] [termcap] [patch] bold colors broken in ncurses apps for xterm-256color"
- Reply: bugzilla-noreply_a_freebsd.org: "[Bug 280679] [termcap] [patch] bold colors broken in ncurses apps for xterm-256color"
- Reply: bugzilla-noreply_a_freebsd.org: "[Bug 280679] [termcap] [patch] bold colors broken in ncurses apps for xterm-256color"
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Thu, 08 Aug 2024 00:10:45 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=280679
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=252599&action=edit
remove AB= and AF= 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 apps
in Xterm.
I found this old Usenet post which seems to imply that some Linux distros made
a similar patch to their termcap databases long ago:
https://tmux-users.narkive.com/o6kjUfcW/bold-colours-and-xterm-256color#post10
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=xterm-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 now
displayed properly.
--
You are receiving this mail because:
You are the assignee for the bug.