[Bug 294499] [termcap] screen entry has so=\E[3m (italic) should be so=\E[7m (reverse video)
- Reply: bugzilla-noreply_a_freebsd.org: "[Bug 294499] [termcap] screen entry has so=\E[3m (italic) should be so=\E[7m (reverse video)"
- Reply: bugzilla-noreply_a_freebsd.org: "[Bug 294499] [termcap] screen entry has so=\E[3m (italic) should be so=\E[7m (reverse video)"
- Reply: bugzilla-noreply_a_freebsd.org: "[Bug 294499] [termcap] screen entry has so=\E[3m (italic) should be so=\E[7m (reverse video)"
- Reply: bugzilla-noreply_a_freebsd.org: "[Bug 294499] [termcap] screen entry has so=\E[3m (italic) should be so=\E[7m (reverse video)"
- Reply: bugzilla-noreply_a_freebsd.org: "[Bug 294499] [termcap] screen entry has so=\E[3m (italic) should be so=\E[7m (reverse video)"
- Reply: bugzilla-noreply_a_freebsd.org: "[Bug 294499] [termcap] screen entry has so=\E[3m (italic) should be so=\E[7m (reverse video)"
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 14 Apr 2026 00:52:58 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=294499
Bug ID: 294499
Summary: [termcap] screen entry has so=\E[3m (italic) should be
so=\E[7m (reverse video)
Product: Base System
Version: 14.3-RELEASE
Hardware: amd64
OS: Any
Status: New
Severity: Affects Some People
Priority: ---
Component: bin
Assignee: bugs@FreeBSD.org
Reporter: freebsd@gushi.org
The screen entry in /etc/termcap has incorrect values for the standout mode
capabilities:
:se=\E[23m:so=\E[3m:
\E[3m is the ANSI escape sequence for italic, not standout/reverse video. The
correct values are:
:se=\E[27m:so=\E[7m:
This can be confirmed by noting that mr=\E[7m (reverse video) is correctly
defined in the same entry — the right escape sequence was available but placed
in the wrong capability.
The screen-256color entry inherits from screen via tc=screen and is therefore
also affected.
The practical effect is that applications linking against base libtinfow
display italic text where reverse video highlighting is expected. Confirmed
with Alpine 2.26 inside a GNU Screen 5.0.1 session on FreeBSD 14.
The fix is a one-line correction in the screen entry in /etc/termcap:
:se=\E[23m:so=\E[3m: should be :se=\E[27m:so=\E[7m:
Note that this entry ships in FreeBSD base and is present even on systems where
the sysutils/screen port has never been installed.
--
You are receiving this mail because:
You are the assignee for the bug.