Skip to content

Conversation

@srlehn
Copy link

@srlehn srlehn commented Nov 13, 2023

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