Repository navigation
Conversation
Fixes vyncint#829 Signed-off-by: Álvaro Alonso <242080768+alvaroalonsoparrondo-a11y@users.noreply.github.com>
vyncint
previously approved these changes
Nov 27, 2026
vyncint
left a comment
Owner
There was a problem hiding this comment.
Reviewed against the issue; CI is green. Thank you.
Signed-off-by: Vyncint Ng <115854244+vyncint@users.noreply.github.com> # Conflicts: # CHANGELOG.md
vyncint
added a commit
to alvaroalonsoparrondo-a11y/termlens
that referenced
this pull request
Nov 27, 2026
Keep both integration tests in tests/unsupported.rs, vyncint#877's mode-list test and this branch's overflow test, and the CHANGELOG entries without a blank line between them. Signed-off-by: Vyncint Ng <115854244+vyncint@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Fixes #829
vt100 carries out
CSI ? Pm h/lmode by mode and hands the whole list tounhandled_csifor each mode it declines. The DEC private mode arm counted the list handled only when every mode in it was one the tracker keeps (or7set), so a list that also named one of vt100's own modes was listed although every mode in it took effect:^[[?2004;1004h,^[[?25;2026h,^[[?7;25h,^[[?1;1015h,^[[?1049;1004h.crates/termlens/src/emu/unhandled.rs: a newVT100_PRIVATE_MODESholds the modes vt100 0.18'sdecsetanddecrstcarry out (1, 6, 9, 25, 47, 1000, 1002, 1003, 1005, 1006, 1049, 2004), and the arm accepts them besideTRACKED_PRIVATE_MODES.7stays accepted forhonly. This is the same shape asunsupported()listsESC[0;5mandESC[0;8m, which ncurses sends for blinking and invisible text, though termlens renders both #754 for SGR andCSI ? 7 hfrom every ncurses app is reported as unsupported, andCSI ? 7 lis ignored #581 for?7h.a_mode_list_of_vt100_and_tracked_modes_is_not_listed: each table row from the issue plus?6;9;47;1004l, and?25;12h/?7;25lstill listed.tests/unsupported.rs,a_list_of_honoured_modes_is_not_listed: the modes are in effect andunsupported()is empty;CSI ? 25 ; 12 his still listed. Without the change it fails with the issue's five shapes. Ignored on Windows like the other tests there (Unix only: what Windows support would actually take #149).Checked on macOS:
cargo fmt --all --check,cargo clippy -p termlens --all-targets --all-features -- -D warnings,cargo test -p termlens --lib emu::(285 passed),cargo test -p termlens --test unsupported,check-dco.shandcheck-no-ai-attribution.sh.Álvaro Alonso
242080768+alvaroalonsoparrondo-a11y@users.noreply.github.com