Skip to content

Add set_background_color on TuiBackend#135

Open
alexanderbh wants to merge 6 commits intotogglebyte:devfrom
alexanderbh:feature/terminal-background-color
Open

Add set_background_color on TuiBackend#135
alexanderbh wants to merge 6 commits intotogglebyte:devfrom
alexanderbh:feature/terminal-background-color

Conversation

@alexanderbh
Copy link

@alexanderbh alexanderbh commented Jul 15, 2025

If this is not something Anathema wants to support maybe a different change could be to expose Screen/Output from the backend to the user. Then this could be implemented in the user app instead.

OSC 11 is not supported everywhere. But it is in most of the terminals that people use. It is not a standard but more of a defacto standard.

I have tested with success in: Windows Terminal, Alacritty (windows), Ghostty (mac), Terminal.app (mac), iTerm2 (mac).

Run the example

cargo run --features osc --example terminal_background

@togglebyte
Copy link
Owner

What's the story with this one, was there an issue on some other platform where this didn't work?

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