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

Add support for GNU Screen #158

Open
jwodder opened this issue Nov 7, 2023 · 0 comments
Open

Add support for GNU Screen #158

jwodder opened this issue Nov 7, 2023 · 0 comments

Comments

@jwodder
Copy link

jwodder commented Nov 7, 2023

It appears that this library is currently unable to query GNU Screen and tmux terminals for their foreground & background colors, but I would like it to be able to do so. According to the source code for the termbg Rust library, a Screen terminal can be queried for its background color with the sequence "\x1bP\x1b]11;?\x07\x1b\\\x03"; I can confirm this works as of Screen 4.9.1, and I can also confirm that the foreground color can be queried by changing the 11 in the background query to a 10. In addition, the sequence that termenv uses for querying the cursor position ("\x1b[6n") also works with Screen.

termbg also uses the sequence "\x1bPtmux;\x1b\x1b]11;?\x07\x1b\\\x03" for getting the background color for tmux terminals. I don't have tmux, so I can't test it, but this sequence does work with my copy of Screen.

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

No branches or pull requests

1 participant