Skip to content

Enhance parser to understand more than just CSI sequences#65

Open
srlehn wants to merge 4 commits into
muesli:masterfrom
srlehn:morethanjustcsi
Open

Enhance parser to understand more than just CSI sequences#65
srlehn wants to merge 4 commits into
muesli:masterfrom
srlehn:morethanjustcsi

Conversation

@srlehn

@srlehn srlehn commented Nov 13, 2023

Copy link
Copy Markdown

Currently PrintableRuneWidth() only looks out for CSI sequences in the ANSI standard. This PR adds support for common ST-terminated (ST = STRING TERMINATOR | "ESC " or "\a") sequences. Examples are OSC-sequences used by the sixel,iTerm2, DomTerm graphics format, APC-sequences (used for kitty graphics). This code is taken from my termimg library and modified slightly.

Fixes #64

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.

OSC sequences are mis-counted in PrintableRuneWidth

1 participant