Skip to content

bugfix DA1 response for some terminals (kitty) - #392

Merged
jquast merged 1 commit into
masterfrom
jq/bugfix-kitty-does-sixel
Jul 3, 2026
Merged

jquast merged 1 commit into
masterfrom
jq/bugfix-kitty-does-sixel

Conversation

@jquast

@jquast jquast commented Jul 1, 2026

Copy link
Copy Markdown
Owner

We parsed for DA1 responses like::

\x1b[?1c'

But some terminals have a "trailing semicolon", e.g. kitty:

\x1b[?1;c

We parsed for DA1 responses like::

    \x1b[?1c'

But some terminals have a "trailing semicolon", e.g. kitty:

    \x1b[?1;c
@codspeed

codspeed Bot commented Jul 1, 2026

Copy link
Copy Markdown

Merging this PR will not alter performance

✅ 28 untouched benchmarks


Comparing jq/bugfix-kitty-does-sixel (f9a1154) with master (b803a64)

Open in CodSpeed

@codecov

codecov Bot commented Jul 1, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 97.36%. Comparing base (b803a64) to head (f9a1154).
⚠️ Report is 20 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master     #392   +/-   ##
=======================================
  Coverage   97.36%   97.36%           
=======================================
  Files          13       13           
  Lines        3792     3792           
  Branches      675      675           
=======================================
  Hits         3692     3692           
  Misses         82       82           
  Partials       18       18           

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Comment thread bin/display-modes.py
print(term.lightgray("Use --all to query all DEC Private Modes"))

remainder = term.flushinp()
assert not remainder, ("erroneous input remains!", remainder)

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

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

this would fail with kitty prior to this change,

Traceback (most recent call last):
  File "/tmp/display-modes.py", line 254, in <module>
    main()
    ~~~~^^
  File "/tmp/display-modes.py", line 250, in main
    assert not remainder, ("erroneous input remains!", remainder)
           ^^^^^^^^^^^^^
AssertionError: ('erroneous input remains!', '\x1b[?62;52;c')

@jquast
jquast merged commit f74af47 into master Jul 3, 2026
15 checks passed
@jquast
jquast deleted the jq/bugfix-kitty-does-sixel branch July 3, 2026 23:19
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.

1 participant