Skip to content

Conversation

@keithr-git
Copy link

I wanted support for the OSC sequences that reset the foreground, background, and cursor colors to their original values. Please let me know if there's a format you prefer for pull requests; I couldn't find anything about that in the READMEs.

@keithr-git keithr-git changed the title Add support for OSC reset fg, bg, and cursor. Add support for OSC reset fg, bg, and cursor color. Mar 7, 2025
Copy link

@carlosfmesilva carlosfmesilva left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

With the same exact idea, would it be possible to use colon : within the escape sequence?

@keithr-git
Copy link
Author

I'm not aware of any ANSI escape sequences that use colons. There are some that accept freeform text, which should already support including colons. Regardless of that, this change is just for adding support for resetting cursor colors, which differ from previously-supported OSC sequences because they don't have a semicolon-separated parameter. That's the only reason this change modifies the escape sequence parsing; any other changes to the parsing should be a different PR.

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