Skip to content

Implement SGR 39 and 49#134

Open
IpsumCapra wants to merge 1 commit intoNorth-Western-Development:1.20.1from
IpsumCapra:fix/sgr-39-49
Open

Implement SGR 39 and 49#134
IpsumCapra wants to merge 1 commit intoNorth-Western-Development:1.20.1from
IpsumCapra:fix/sgr-39-49

Conversation

@IpsumCapra
Copy link
Copy Markdown

Escape sequences SGR 39 and 49 were not implemented which caused the terminal to be unable to reset to the default foreground / background, respectively. This is mostly a problem with programs like tmux which heavily rely on these escape sequences.

Example

The problem is clear to see when using the tmux clock (shown using C-b t)

Without SGR 49 implemented:

no-49

With SGR 49 implemented:

with-49

SGR 39 and 49 were not implemented which caused the terminal to be
unable to reset to the default foreground / background, respectively.
This is mostly a problem with programs like tmux which heavily rely on
these escape sequences.
@dhouck
Copy link
Copy Markdown

dhouck commented Apr 22, 2026

Oh, is this also what can cause issues if you enable Nano syntax highlighting?

@IpsumCapra
Copy link
Copy Markdown
Author

I would assume so, it (also) fixes the syntax highlighting for my Vim build. I don't see why it wouldn't work for Nano.

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