Skip to content

fix(emu): don't list a DEC mode list of vt100 and tracked modes - #877

Merged
vyncint merged 2 commits into
vyncint:mainfrom
alvaroalonsoparrondo-a11y:fix/dec-mode-list-vt100-modes
Nov 27, 2026
Merged

vyncint merged 2 commits into
vyncint:mainfrom
alvaroalonsoparrondo-a11y:fix/dec-mode-list-vt100-modes

Conversation

@alvaroalonsoparrondo-a11y

Copy link
Copy Markdown
Contributor

Fixes #829

vt100 carries out CSI ? Pm h / l mode by mode and hands the whole list to unhandled_csi for each mode it declines. The DEC private mode arm counted the list handled only when every mode in it was one the tracker keeps (or 7 set), 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.

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.sh and check-no-ai-attribution.sh.

Álvaro Alonso
242080768+alvaroalonsoparrondo-a11y@users.noreply.github.com

Fixes vyncint#829

Signed-off-by: Álvaro Alonso <242080768+alvaroalonsoparrondo-a11y@users.noreply.github.com>
vyncint
vyncint previously approved these changes Nov 27, 2026

@vyncint vyncint left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed against the issue; CI is green. Thank you.

Signed-off-by: Vyncint Ng <115854244+vyncint@users.noreply.github.com>

# Conflicts:
#	CHANGELOG.md
@vyncint
vyncint merged commit 0472590 into vyncint:main Nov 27, 2026
17 checks passed
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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

unsupported() lists a DEC mode list mixing a mode vt100 sets with one termlens tracks, though both apply

2 participants