Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed: Parse (but ignore for now) terminal APC sequences #4155

Merged
merged 1 commit into from
Sep 18, 2024
Merged

Conversation

fornwall
Copy link
Member

@fornwall fornwall commented Sep 17, 2024

Parse Application Program-Control (APC) terminal escape sequences - sequences starting with ESC _ and ending with ESC \ (String Terminator, ST).

Reference: https://www.xfree86.org/current/ctlseqs.html

This is a first small step toward supporting Kitty terminal graphics protocol as it uses APC sequences, and fixes e.g. characters being incorrectly shown on screen when returning from yazi(see below video), since that program probes for Kitty support by writing an APC sequence that is either handled (by terminals supporting the kitty graphics protocol) or should be ignored (by terminals not supporting it, which we here also start doing as well).

365843650-5c83c3f7-8ec2-4686-8d8a-08f607241024.mp4

@fornwall fornwall merged commit 36d811e into master Sep 18, 2024
4 checks passed
@fornwall fornwall deleted the eat-apc branch September 18, 2024 20:28
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