Skip to content

Improved remote truecolor detection by unique TERM - #394

Merged
jquast merged 1 commit into
masterfrom
jq/remote-truecolor-detection
Jul 3, 2026
Merged

jquast merged 1 commit into
masterfrom
jq/remote-truecolor-detection

Conversation

@jquast

@jquast jquast commented Jul 3, 2026 •

Copy link
Copy Markdown
Owner

Closes #386. For remote sessions, like SSH, only TERM environment variable is transmitted reliably.

In addition to RGB check via XTGETTCAP, we found only kitty terminal requires a different lookup mechanism (using DECRQSS). However, TERM=kitty in that case. Using results from ucs-detect project, we have determined a unique set of unique terminal types that identify as 24-bit color.

@codspeed

codspeed Bot commented Jul 3, 2026

Copy link
Copy Markdown

Merging this PR will not alter performance

✅ 28 untouched benchmarks


Comparing jq/remote-truecolor-detection (26b8f10) with master (b803a64)

Open in CodSpeed

@codecov

codecov Bot commented Jul 3, 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 (26b8f10).
⚠️ Report is 20 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master     #394   +/-   ##
=======================================
  Coverage   97.36%   97.36%           
=======================================
  Files          13       13           
  Lines        3792     3795    +3     
  Branches      675      676    +1     
=======================================
+ Hits         3692     3695    +3     
  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.

@jquast
jquast merged commit 9404370 into master Jul 3, 2026
15 checks passed
@jquast
jquast deleted the jq/remote-truecolor-detection branch July 3, 2026 23:26
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.

Remote truecolor detection for Terminal.exe, cmd.exe, and kitty

1 participant