-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Closed
Description
Issue description
Following commit a41a927, the OSC 11 sequence correctly returns the background color, but doesn't reflect any change in background color until client is detached/attached
How to reproduce:
~/osc11.bash
#!/usr/bin/env bash
read -rs -d \\ -p $'\e]11;?\e\\' BG
echo "$BG" \
| xxd -c 64 \
| grep -o -E "rgb:.{4}/.{4}/.{4}"
- Clean existing tmux
tmux kill-server
- Start a new session
tmux new
bash ~/osc11.bash
=>rgb:fbfb/f1f1/c8c8
- Update the background from the terminal (In my case, Change from OS light mode to dark mode)
bash ~/osc11.bash
=>rgb:fbfb/f1f1/c8c8
Still shows the previous background color- Detach session
C-b d
- Re-attach
tmux attach
bash ~/osc11.bash
=>rgb:2020/2020/2020
Shows the new background color
Required information
- tmux version:
tmux next-3.4
@ 0eb5d25 - Platform:
Darwin arm
- $TERM inside tmux:
xterm-256color
- $TERM outside tmux:
xterm-256color
- Terminal: Wezterm
vimpostor and soulman-is-good
Metadata
Metadata
Assignees
Labels
No labels