Repository navigation
Query XTGETTCAP on Terminal init - #375
Merged
Merged
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #375 +/- ##
==========================================
- Coverage 97.51% 97.35% -0.16%
==========================================
Files 13 13
Lines 3706 3785 +79
Branches 646 671 +25
==========================================
+ Hits 3614 3685 +71
- Misses 70 82 +12
+ Partials 22 18 -4 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
jquast
force-pushed
the
jq/jinxed-2.0
branch
3 times, most recently
from
May 15, 2026 02:06
9742d0e to
c1bebc3
Compare
jquast
force-pushed
the
jq/xtgettcap-improved
branch
2 times, most recently
from
May 15, 2026 03:25
2496e62 to
66a3e5a
Compare
jquast
marked this pull request as ready for review
May 15, 2026 03:38
Owner
Author
|
I have published a draft of utility that uses this feature https://github.com/jquast/ttyscan, it makes good calculated use of new |
An error occurred while trying to automatically change base from
jq/jinxed-2.0
to
master
May 18, 2026 15:47
Implement terminal capability discovery via XTGETTCAP (DCS +q). Probe during init for TN, RGB, colors, blink, sitm, ritm, cvvis, Smulx, Setulc, Ms. Overlay discovered capabilities onto jinxed. Add get_xtgettcap(caps=...) for selective/incremental queries. Detect 24-bit color via COLORTERM and XTGETTCAP RGB/colors. Add number_of_colors XTGETTCAP resolution layers. Add TermcapResponse methods: parse_capabilities, from_match, unescape_terminfo, make_jinxed_capabilities, hex_encode, hex_decode. Extract _validate helper in text_sized. Clip sizing alignment to fractional-scaling-only (Kitty protocol). Add bin/xtgettcap_compare.py tool.
…moved The jinxed migration intentionally dropped the %i detection in get_location(), now unconditionally converting CPR coordinates from 1-based to 0-based. The test for a nonstandard u6 without %i is no longer applicable and is redundant with test_get_location_styling_indifferent.
jquast
force-pushed
the
jq/xtgettcap-improved
branch
from
May 18, 2026 16:16
6e3c174 to
43a43a8
Compare
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.
Implement terminal capability discovery via XTGETTCAP (DCS +q).
unescape_terminfo() for ghostty/kitty/foot terminfo-source values.
Smulx, Setulc, Ms. Overlay discovered capabilities onto jinxed.