Skip to content

Expand terminal escape sequence for three more ECMA-48 "families" - #214

Merged
jquast merged 3 commits into
masterfrom
jq/additional-escape-sequences
Apr 30, 2026
Merged

Expand terminal escape sequence for three more ECMA-48 "families"#214
jquast merged 3 commits into
masterfrom
jq/additional-escape-sequences

Conversation

@jquast

@jquast jquast commented Apr 8, 2026

Copy link
Copy Markdown
Owner
  1. Fs sequences (independent functions, ESC 0x60-0x7E): RIS (ESC c), memory lock/unlock, locking shifts (LS2, LS3, LS1R, LS2R, LS3R)
  2. Fp sequences (private use, ESC 0x30-0x3F): DECSC/DECRC (ESC 7/ESC 8), DECKPAM/DECKPNM (ESC =/ESC >)
  3. nF sequences (multi-byte, ESC intermediate... final): character set selection (ESC #8, ESC %G),S7C1T/S8C1T, DECDHL/DECSWL/DECDWL

All measured as zero-width, and ESC c raises when width(parse='strict') as an indeterminate-effect, many/most terminals clear screen and re-position to home.

- adds "nf sequences", expands "fs" and "fp" sequences
- adds reset sequence, `\x1bc`
@codecov

codecov Bot commented Apr 8, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 100.00%. Comparing base (07817a7) to head (edf70cc).

Additional details and impacted files
@@            Coverage Diff            @@
##            master      #214   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files           15        15           
  Lines         1030      1030           
  Branches       263       263           
=========================================
  Hits          1030      1030           

☔ View full report in Codecov by Sentry.
📢 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.

@codspeed-hq

codspeed-hq Bot commented Apr 8, 2026

Copy link
Copy Markdown

Merging this PR will not alter performance

✅ 64 untouched benchmarks


Comparing jq/additional-escape-sequences (692953a) with master (28a39d9)

Open in CodSpeed

@jquast jquast changed the title Add some missing output terminal sequences Add support for a few more terminal sequences Apr 10, 2026
@jquast
jquast marked this pull request as ready for review April 10, 2026 20:06
@jquast jquast changed the title Add support for a few more terminal sequences Expand terminal escape sequence for three more ECMA-48 "families" Apr 10, 2026
@jquast
jquast merged commit 5b74bf0 into master Apr 30, 2026
36 of 38 checks passed
@jquast
jquast deleted the jq/additional-escape-sequences branch April 30, 2026 05:03
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