Repository navigation
Conversation
Fixes vyncint#846 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
Combine the range check with vyncint#873's colour-space match: a component over 100 is ignored inside the RGB arm. Keep both tests, 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 #846
decode_sixelrefused every colour space but RGB withsixel HLS colours, so#1;3;10;20;30or#1;0;…failed with a message about HLS, which is only colour space 1.crates/termlens/src/graphics.rs: the definition is matched on its colour space.1(HLS) is still refused,2(RGB) is applied as before, and any other space is ignored, leaving the register as it was. That is what xterm does: it treats any other space as aDATA_ERRORand skipsupdate_color_register(graphics_sixel.c:799-803). The register is still selected, so the image draws in its earlier colour.a_colour_in_an_unknown_space_leaves_the_register_as_it_was: register 1 defined blue then redefined in space 0 or 3 paints blue, and an undefined register redefined in space 3 keeps its VT340 default. It fails without the change (the decode returnsUnsupported).hls_colours_are_refused_rather_than_convertedstill passes.Checked on macOS:
cargo fmt --all --check,cargo clippy -p termlens --all-targets --all-features -- -D warnings,cargo test -p termlens --features decode --libfor the sixel colour tests,check-dco.shandcheck-no-ai-attribution.sh.Álvaro Alonso
242080768+alvaroalonsoparrondo-a11y@users.noreply.github.com