You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
So with OSC11 we can query the background color of the terminal:
❯ printf '\e]11;?\007'
^[]11;rgb:1818/1818/1818^G
Some terminals allow a live reload of their configuration, I'm using alacritty with an script to switch from a dark to a light theme.
The issue is that tmux doesn't refresh the terminal background color and the OSC11 sequence returns the old background color causing TUI apps to think that I'm still using a dark theme. If I close all tmux sessions and re-open tmux then it detects the new background.
Is there a way to tell tmux to query again the terminal background color?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
So with OSC11 we can query the background color of the terminal:
Some terminals allow a live reload of their configuration, I'm using alacritty with an script to switch from a dark to a light theme.
The issue is that tmux doesn't refresh the terminal background color and the OSC11 sequence returns the old background color causing TUI apps to think that I'm still using a dark theme. If I close all tmux sessions and re-open tmux then it detects the new background.
Is there a way to tell tmux to query again the terminal background color?
Beta Was this translation helpful? Give feedback.
All reactions