Skip to content

Conversation

@aymanbagabas
Copy link
Collaborator

@aymanbagabas aymanbagabas force-pushed the readwriter branch 5 times, most recently from f96dbec to efeeaef Compare April 14, 2023 21:12
@aymanbagabas aymanbagabas force-pushed the readwriter branch 2 times, most recently from 63dcd52 to 30e443b Compare August 22, 2023 20:20
Base automatically changed from readwriter to master August 25, 2023 12:34
@muesli
Copy link
Owner

muesli commented Aug 26, 2023

We need to be careful here: tmux supports setting the colors now via 10/11, but querying is still impossible (multiple terminals connected can have diverging color settings).

@meatcar
Copy link

meatcar commented Sep 4, 2025

I'd like to voice my support for this PR (once conflicts are resolved), or something like it.

Per tmux/tmux#3582 tmux supports querying via OSC11. Tmux reports the colors of the first terminal to attach to a tmux session. If the terminal's settings change, re-attaching to the tmux session is sufficient. The thread in #158 agrees that it's ok to trust tmux's OSC11 response.

At the moment tools that use termenv (like jjui, via lipgloss) don't detect the color scheme when run in tmux. A work around is to mess with TERM, but it would be really nice if everything just worked out-of-the-box.

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.

4 participants