Skip to content

Fix some escape codes#301

Merged
epage merged 5 commits intorust-cli:mainfrom
Muscraft:fix-some-escape-codes
Mar 13, 2026
Merged

Fix some escape codes#301
epage merged 5 commits intorust-cli:mainfrom
Muscraft:fix-some-escape-codes

Conversation

@Muscraft
Copy link
Contributor

While using a tool locally that depends on anstyle-svg, I encountered some I encountered some oddities with how it handled underlines. After some investigation I found that the main cause was that anstyle-svg didn't support SGR 22-29, but the lack of support for 591 and bug with 4:0's1 implementation also caused issues.

To address this I implemented SGR 22-292 as well as 59, and made 4:0 remove all types of underlines, not just the "base" one.

Footnotes

  1. https://sw.kovidgoyal.net/kitty/underlines/ 2

  2. I did not add support for 25 (Not blinking) since anstyle-svg doesn't currently have support for bliking

@Muscraft Muscraft force-pushed the fix-some-escape-codes branch from e424aee to e2d2fb5 Compare March 13, 2026 18:47
@epage epage merged commit dd73f64 into rust-cli:main Mar 13, 2026
16 of 17 checks passed
@Muscraft Muscraft deleted the fix-some-escape-codes branch March 13, 2026 18:58
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.

2 participants