xterm: Add minimumContrast menu toggle #3482
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Update xterm-412-min-contrast.patch and bump the revision to 412-2.
The patch now also adds "Enable Minimum Contrast" to the VT Options
menu, with the matching set-min-contrast(on/off/toggle) action, to turn
the adjustment off and on at runtime. Enabling it when minimumContrast
is 1 or less uses the default ratio, 3.0.
Co-Authored-By: Claude Opus 5.5 noreply@anthropic.com
xterm: Add minimumContrast patch
Apply xterm-412-min-contrast.patch and bump the revision to 412-1.
The patch adds a minimumContrast resource and -mincontrast option.
Text whose WCAG 2 contrast ratio against its background is below
minimumContrast (default 3.0; 1 disables) is drawn lighter or darker,
keeping its hue. Light gray on a light background or dark blue on black
stays readable this way. The adjustment happens only when drawing,
including the character under the cursor; stored colors, screen dumps
and color reports are unchanged.
It also avoids X server round-trips when converting pixels on TrueColor
visuals with more than 8 significant bits per channel, for both the
contrast filter and faint (SGR 2) colors.
Co-Authored-By: Claude Opus 5.5 noreply@anthropic.com
xterm: Update version from 303 to 412
412 is the newest release (2026-10-12).
Drop
make install-tiand the termcap/terminfo edits feeding it: runwithout DESTDIR, the terminfo never ended up in the package (the system
xterm entries come from ncurses_terminfo_compat), and a non-root build
writes to, or fails on, the host's terminfo directory.
The package contains the same files as before, plus 16x16 pixmaps.
Tested with
fakeroot beesh -c, and under Xvfb: xterm starts withTERM=xterm, renders UTF-8, and sets erase to ^H, matching kbs in the
system terminfo.
Co-Authored-By: Claude Opus 5.5 noreply@anthropic.com