-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
OSC11 query caches response until client is changed #3582
Copy link
Copy link
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/c8c8Still shows the previous background color- Detach session
C-b d - Re-attach
tmux attach bash ~/osc11.bash=>rgb:2020/2020/2020Shows 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
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels