terminal software-assisted width#220
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #220 +/- ##
==========================================
Coverage 100.00% 100.00%
==========================================
Files 23 31 +8
Lines 1525 1751 +226
Branches 365 401 +36
==========================================
+ Hits 1525 1751 +226 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Merging this PR will degrade performance by 10.91%
|
and update ucs-detect submodule
Use environment values of
TERM_PROGRAMandTERM, and suggest that calling programs to useXTVERSIONquery result, to hint towidth()andwcswidth(term_program='xterm.js'),When set, and it matches the automatic "overrides" tables, a correction is applied. This is made possible by the data gathered by https://ucs-detect.readthedocs.io/ project.
Only terminals that can be identified by TERM_PROGRAM, XTVERSION, or unique TERM (eg. rio, contour, alacritty, kitty, etc. all have custom
TERM) are supported. Although we gather data for other terminals, we don't bother to publish corrections if nobody can automatically use it.VS-15 support is also re-introduced, now that we can properly account for it and its overrides, and, that ghostty and kitty (and more recently, AbsoluteTelnet/SSH beta) matches our interpretation of standard, we can label the others as a common set of overrides by
term_programwhere identifiable.