Closed ch4m1gn0n closed 7 months ago
Please capture a terminal recording:
wezterm record
to start a recording session.nvim
or whatever those steps might be (you didn't include them in the original report!)exit
*** Finished recording to /var/tmp/wezterm-recording-sF6B3u.cast.txt
The file is an asciicast (compatible with https://asciinema.org/) and can also be replayed using wezterm replay
.
The terminal recording allows me to replicate what is being sent to the terminal without requiring me to install the same applications as you and replicate your configuration for everything.
My operation:
run wezterm record
change system to dark mode and the terminal theme also changed.
change system to light mode and terminal theme changed again.
type lvim
to start nvim, and space q
to quit it.
change system to dark mode and the terminal windows changed but theme didn't.
change system to light mode.
here is the recording file:
{"version":2,"width":80,"height":24,"timestamp":1684292506,"env":{"LANG":"en_US.UTF-8","WEZTERM_TARGET_TRIPLE":"aarch64-apple-darwin","WEZTERM_VERSION":"20230408-112425-69ae8472","TERM":"xterm-256color"},"theme":{"fg":"#b2b2b2","bg":"#000000","palette":"#000000:#cc5555:#55cc55:#cdcd55:#5455cb:#cc55cc:#7acaca:#cccccc:#555555:#ff5555:#55ff55:#ffff55:#5555ff:#ff55ff:#55ffff:#ffffff"}}
[0.18488608,"o","Welcome to fish, the friendly interactive shell\r\nType \u001b[32mhelp\u001b(B\u001b[m for instructions on how to use fish\r\n"]
[0.18689883,"o","\u001b[?2004h"]
[0.1869962,"o","\u001b]7;file://ArnauddeMacBook-Pro.local/Users/chamignon\u0007"]
[0.19525662,"o","\u001b]0;~\u0007"]
[0.19526184,"o","\u001b[30m\u001b(B\u001b[m"]
[0.19526316,"o","\r"]
[0.19528522,"o","\u001b[36m⋊>\u001b(B\u001b[m \u001b[33m~\u001b(B\u001b[m \u001b[K\r\u001b[72C\u001b[38;2;85;85;85m11:01:46\u001b(B\u001b[m\r\u001b[72C\r\u001b[5C"]
[14.280985,"o","l\r\u001b[72C\u001b[38;2;85;85;85m11:01:46\u001b(B\u001b[m\r\u001b[72C\r\u001b[6C"]
[14.281746,"o","\b\u001b[91ml\r\u001b[72C\u001b[30m\u001b(B\u001b[m\u001b[38;2;85;85;85m11:01:46\u001b(B\u001b[m\r\u001b[72C\r\u001b[6C"]
[14.281875,"o","\u001b[38;2;85;85;85mvim .wezterm.lua\r\u001b[72C\u001b[30m\u001b(B\u001b[m\u001b[38;2;85;85;85m11:01:46\u001b(B\u001b[m\r\u001b[72C\r\u001b[6C"]
[14.4181,"o","\u001b[91mv\u001b[38;2;85;85;85mim .wezterm.lua\r\u001b[72C\u001b[30m\u001b(B\u001b[m\u001b[38;2;85;85;85m11:01:46\u001b(B\u001b[m\r\u001b[72C\r\u001b[7C"]
[14.554958,"o","\u001b[91mi\u001b[38;2;85;85;85mm .wezterm.lua\r\u001b[72C\u001b[30m\u001b(B\u001b[m\u001b[38;2;85;85;85m11:01:46\u001b(B\u001b[m\r\u001b[72C\r\u001b[8C"]
[14.648344,"o","\u001b[91mm\u001b[38;2;85;85;85m .wezterm.lua\r\u001b[72C\u001b[30m\u001b(B\u001b[m\u001b[38;2;85;85;85m11:01:46\u001b(B\u001b[m\r\u001b[72C\r\u001b[9C"]
[14.648567,"o","\b\b\b\b\u001b[34mlvim\u001b[38;2;85;85;85m .wezterm.lua\r\u001b[72C\u001b[30m\u001b(B\u001b[m\u001b[38;2;85;85;85m11:01:46\u001b(B\u001b[m\r\u001b[72C\r\u001b[9C"]
[15.28174,"o","\u001b[K\r\u001b[72C\u001b[38;2;85;85;85m11:01:46\u001b(B\u001b[m\r\u001b[72C\r\u001b[9C\r\n"]
[15.281846,"o","\u001b[30m\u001b(B\u001b[m"]
[15.282224,"o","\u001b[?2004l"]
[15.284241,"o","\u001b]0;lvim ~\u0007"]
[15.284265,"o","\u001b[30m\u001b(B\u001b[m"]
[15.284267,"o","\r"]
[15.327022,"o","\u001b[?1049h\u001b[22;0;0t\u001b[22;0t\u001b[?1h\u001b=\u001b[H\u001b[2J\u001b]11;?\u0007\u001b[?2004h\u001b[?u\u001b[c\u001b[?25h"]
[15.397617,"o","2023-05-17 11:02:02.128 defaults[6719:368356] \nThe domain/default pair of (kCFPreferencesAnyApplication, AppleInterfaceStyle) does not exist\n"]
[15.414681,"o","\u001b[?25l\u001b[>4;2m\u001b(B\u001b[m\u001b[H\u001b[2J\u001b[?1004h\u001b[?25h"]
[15.430838,"o","\u001b[?25l\u001b[23Btrue 256\u001b[K\u001b[38;2;84;110;122m\u001b[48;2;250;250;250m\u001b[H\u001b[K\n\u001b[K\n\u001b(B\u001b[m\u001b[38;2;124;77;255m\u001b[48;2;250;250;250m ⢀⣀ ⣰⣶ ⢀⣤⣄ \u001b(B\u001b[m\u001b[38;2;84;110;122m\u001b[48;2;250;250;250m\u001b[K\r\n\u001b(B\u001b[m\u001b[38;2;124;77;255m\u001b[48;2;250;250;250m ⢸⣿ ⣀⡀ ⣰⣿⠏ ⠘⠿⠟ \u001b(B\u001b[m\u001b[38;2;84;110;122m\u001b[48;2;250;250;250m\u001b[K\r\n\u001b(B\u001b[m\u001b[38;2;124;77;255m\u001b[48;2;250;250;250m ⣿⡟ ⣤⡄ ⣠⣤ ⢠⣤⣀⣤⣤⣤⡀ ⢀⣤⣤⣤⣤⡀ ⢠⣤⢀⣤⣤⣄ ⣿⣿ ⢰⣿⠏ ⣶⣶⣶⣶⡦ ⢠⣶⣦⣴⣦⣠⣴⣦⡀ \u001b(B\u001b[m\u001b[38;2;84;110;122m\u001b[48;2;250;250;250m\u001b[K\r\n\u001b(B\u001b[m\u001b[38;2;124;77;255m\u001b[48;2;250;250;250m ⢠⣿⡇ ⢠⣿⠇ ⣿⡇ ⣿⡿⠉ ⠈⣿⣧ ⠰⠿⠋ ⢹⣿ ⣿⡿⠋ ⠹⠿ ⢻⣿⡇⢠⣿⡟ ⠈⠉⢹⣿⡇ ⢸⣿⡏⢹⣿⡏⢹⣿⡇ \u001b(B\u001b[m\u001b[38;2;84;110;122m\u001b[48;2;250;250;250m\u001b[K\r\n\u001b(B\u001b[m\u001b[38;2;124;77;255m\u001b[48;2;250;250;250m ⢸⣿ ⢸⣿ ⢰⣿"]
[15.430861,"o","⠃ ⢠⣿⡇ ⣿⡇ ⣠⣴⡶⠶⠶⣿⣿ ⢠⣿⡇ ⢸⣿⣇⣿⡿ ⣿⣿⠁ ⣿⣿ ⣾⣿ ⣾⣿⠁ \u001b(B\u001b[m\u001b[38;2;84;110;122m\u001b[48;2;250;250;250m\u001b[K\r\n\u001b(B\u001b[m\u001b[38;2;124;77;255m\u001b[48;2;250;250;250m ⣿⣟ ⢻⣿⡀ ⢀⣼⣿ ⢸⣿ ⢰⣿⠇ ⢰⣿⣇ ⣠⣿⡏ ⢸⣿ ⢸⣿⣿⣿⠁ ⣀⣀⣠⣿⣿⣀⡀ ⢠⣿⡟⢠⣿⡟⢀⣿⡿ \u001b(B\u001b[m\u001b[38;2;84;110;122m\u001b[48;2;250;250;250m\u001b[K\r\n\u001b(B\u001b[m\u001b[38;2;124;77;255m\u001b[48;2;250;250;250m ⠛⠛⠛⠛⠛⠛⠁ ⠈⠛⠿⠟⠋⠛⠃ ⠛⠛ ⠘⠛ ⠙⠿⠿⠛⠙⠛⠃ ⠚⠛ ⠘⠿⠿⠃ ⠿⠿⠿⠿⠿⠿⠿ ⠸⠿⠇⠸⠿⠇⠸⠿⠇ \u001b(B\u001b[m\u001b[38;2;84;110;122m\u001b[48;2;250;250;250m\u001b[K\r\n\u001b[K\n\u001b[K\n \u001b[12;17H Find File \u001b(B\u001b[m\u001b[38;2;57;173;181m\u001b[48;2;250;250;250mf\u001b(B\u001b[m\u001b[38;2;84;110;122m\u001b[48;2;250;250;250m\u001b[K\r\n\u001b[K\n \u001b[14;17H New File \u001b(B\u001b[m\u001b[38;2;57;173;181m\u001b[48;2;250;250;250mn\u001b(B\u001b[m\u001b[38;2;84;110;122m\u001b[48;2;250;250;250m\u001b[K\r\n\u001b[K"]
[15.430868,"o","\n \u001b[16;17H Projects \u001b(B\u001b[m\u001b[38;2;57;173;181m\u001b[48;2;250;250;250mp\u001b(B\u001b[m\u001b[38;2;84;110;122m\u001b[48;2;250;250;250m\u001b[K\r\n\u001b[K\n \u001b[18;17H Recent files \u001b(B\u001b[m\u001b[38;2;57;173;181m\u001b[48;2;250;250;250mr\u001b(B\u001b[m\u001b[38;2;84;110;122m\u001b[48;2;250;250;250m\u001b[K\r\n\u001b[K\n \u001b[20;17H Find Text \u001b(B\u001b[m\u001b[38;2;57;173;181m\u001b[48;2;250;250;250mt\u001b(B\u001b[m\u001b[38;2;84;110;122m\u001b[48;2;250;250;250m\u001b[K\r\n\u001b[K\n \u001b[22;17H Configuration \u001b(B\u001b[m\u001b[38;2;57;173;181m\u001b[48;2;250;250;250mc\u001b(B\u001b[m\u001b[38;2;84;110;122m\u001b[48;2;250;250;250m\u001b[K\u001b(B\u001b[m\u001b[38;2;84;110;122m\u001b[48;2;250;250;250m\r\n\u001b[K\u001b(B\u001b[m\u001b[38;2;84;110;122m\u001b[48;2;250;250;250m\n\u001b[8X\u001b]0;[No Name] - - NVIM\u0007\u001b]12;#272727\u0007\u001b[2 q\u001b]12;#272727\u0007\u001b[2 q\u001b[?1002h\u001b[?1006h\u001b[H\u001b[K\n\u001b[K\n\u001b(B\u001b[m\u001b[38;2;124;77;255m\u001b[48;2;250;250;250m ⢀⣀ ⣰⣶ ⢀⣤⣄ \u001b(B\u001b[m\u001b[38;2;84;110;122m\u001b[48;2;250"]
[15.430872,"o",";250;250m\u001b[K\r\n\u001b(B\u001b[m\u001b[38;2;124;77;255m\u001b[48;2;250;250;250m ⢸⣿ ⣀⡀ ⣰⣿⠏ ⠘⠿⠟ \u001b(B\u001b[m\u001b[38;2;84;110;122m\u001b[48;2;250;250;250m\u001b[K\r\n\u001b(B\u001b[m\u001b[38;2;124;77;255m\u001b[48;2;250;250;250m ⣿⡟ ⣤⡄ ⣠⣤ ⢠⣤⣀⣤⣤⣤⡀ ⢀⣤⣤⣤⣤⡀ ⢠⣤⢀⣤⣤⣄ ⣿⣿ ⢰⣿⠏ ⣶⣶⣶⣶⡦ ⢠⣶⣦⣴⣦⣠⣴⣦⡀ \u001b(B\u001b[m\u001b[38;2;84;110;122m\u001b[48;2;250;250;250m\u001b[K\r\n\u001b(B\u001b[m\u001b[38;2;124;77;255m\u001b[48;2;250;250;250m ⢠⣿⡇ ⢠⣿⠇ ⣿⡇ ⣿⡿⠉ ⠈⣿⣧ ⠰⠿⠋ ⢹⣿ ⣿⡿⠋ ⠹⠿ ⢻⣿⡇⢠⣿⡟ ⠈⠉⢹⣿⡇ ⢸⣿⡏⢹⣿⡏⢹⣿⡇ \u001b(B\u001b[m\u001b[38;2;84;110;122m\u001b[48;2;250;250;250m\u001b[K\r\n\u001b(B\u001b[m\u001b[38;2;124;77;255m\u001b[48;2;250;250;250m ⢸⣿ ⢸⣿ ⢰⣿⠃ ⢠⣿⡇ ⣿⡇ ⣠⣴⡶⠶⠶⣿⣿ ⢠⣿⡇ ⢸⣿⣇⣿⡿ ⣿⣿⠁ ⣿⣿ ⣾⣿ ⣾⣿⠁ \u001b(B\u001b[m\u001b[38;2;84;110;122m\u001b[48;2;250;250;250m\u001b[K\r\n\u001b(B\u001b[m\u001b[38;2;124;77;255m\u001b[48;2;250;250;250m ⣿⣟ ⢻⣿⡀ ⢀"]
[15.430902,"o","⣼⣿ ⢸⣿ ⢰⣿⠇ ⢰⣿⣇ ⣠⣿⡏ ⢸⣿ ⢸⣿⣿⣿⠁ ⣀⣀⣠⣿⣿⣀⡀ ⢠⣿⡟⢠⣿⡟⢀⣿⡿ \u001b(B\u001b[m\u001b[38;2;84;110;122m\u001b[48;2;250;250;250m\u001b[K\r\n\u001b(B\u001b[m\u001b[38;2;124;77;255m\u001b[48;2;250;250;250m ⠛⠛⠛⠛⠛⠛⠁ ⠈⠛⠿⠟⠋⠛⠃ ⠛⠛ ⠘⠛ ⠙⠿⠿⠛⠙⠛⠃ ⠚⠛ ⠘⠿⠿⠃ ⠿⠿⠿⠿⠿⠿⠿ ⠸⠿⠇⠸⠿⠇⠸⠿⠇ \u001b(B\u001b[m\u001b[38;2;84;110;122m\u001b[48;2;250;250;250m\u001b[K\r\n\u001b[K\n\u001b[K\n \u001b[12;17H Find File \u001b(B\u001b[m\u001b[38;2;57;173;181m\u001b[48;2;250;250;250mf\u001b(B\u001b[m\u001b[38;2;84;110;122m\u001b[48;2;250;250;250m\u001b[K\r\n\u001b[K\n \u001b[14;17H New File \u001b(B\u001b[m\u001b[38;2;57;173;181m\u001b[48;2;250;250;250mn\u001b(B\u001b[m\u001b[38;2;84;110;122m\u001b[48;2;250;250;250m\u001b[K\r\n\u001b[K\n \u001b[16;17H Projects \u001b(B\u001b[m\u001b[38;2;57;173;181m\u001b[48;2;250;250;250mp\u001b(B\u001b[m\u001b[38;2;84;110;122m\u001b[48;2;250;250;250m\u001b[K\r\n\u001b[K\n \u001b[18;17H Recent files "]
[15.430935,"o"," \u001b(B\u001b[m\u001b[38;2;57;173;181m\u001b[48;2;250;250;250mr\u001b(B\u001b[m\u001b[38;2;84;110;122m\u001b[48;2;250;250;250m\u001b[K\r\n\u001b[K\n \u001b[20;17H Find Text \u001b(B\u001b[m\u001b[38;2;57;173;181m\u001b[48;2;250;250;250mt\u001b(B\u001b[m\u001b[38;2;84;110;122m\u001b[48;2;250;250;250m\u001b[K\r\n\u001b[K\n \u001b[22;17H Configuration \u001b(B\u001b[m\u001b[38;2;57;173;181m\u001b[48;2;250;250;250mc\u001b(B\u001b[m\u001b[38;2;84;110;122m\u001b[48;2;250;250;250m\u001b[K\u001b(B\u001b[m\u001b[38;2;84;110;122m\u001b[48;2;250;250;250m\r\n\u001b[K\u001b(B\u001b[m\u001b[38;2;84;110;122m\u001b[48;2;250;250;250m\n\u001b[J\u001b[8C\u001b[?25h"]
[15.430969,"o","\u001b[?25l\u001b[12;19H\u001b[?25h"]
[15.431463,"o","\u001b[?25l"]
[15.470305,"o","\u001b[?25h"]
[17.424536,"o","\u001b[?25l\r\u001b[12B\u001b[?25h"]
[17.431456,"o","\u001b[?25l\u001b]12;#272727\u0007\u001b[2 q\u001b[?1002l\u001b[?1006l\u001b(B\u001b[m\u001b[?25h\u001b[?1l\u001b>\u001b[>4;0m\u001b[?1049l\u001b[23;0;0t\u001b[23;0t\u001b]112\u0007\u001b[?2004l\u001b[?1004l\u001b[?25h"]
[17.432766,"o","\u001b[2m⏎\u001b(B\u001b[m \r⏎ \r\u001b[K"]
[17.43289,"o","\u001b[?2004h"]
[17.448818,"o","\u001b]0;~\u0007"]
[17.448822,"o","\u001b[30m\u001b(B\u001b[m"]
[17.448843,"o","\r"]
[17.448866,"o","\u001b[36m⋊>\u001b(B\u001b[m \u001b[33m~\u001b(B\u001b[m \u001b[K\r\u001b[72C\u001b[38;2;85;85;85m11:02:04\u001b(B\u001b[m\r\u001b[72C\r\u001b[5C"]
[28.23843,"o","e\r\u001b[72C\u001b[38;2;85;85;85m11:02:04\u001b(B\u001b[m\r\u001b[72C\r\u001b[6C\u001b[38;2;85;85;85mxit\r\u001b[72C\u001b[30m\u001b(B\u001b[m\u001b[38;2;85;85;85m11:02:04\u001b(B\u001b[m\r\u001b[72C\r\u001b[6C"]
[28.238926,"o","\b\u001b[91me\u001b[38;2;85;85;85mxit\r\u001b[72C\u001b[30m\u001b(B\u001b[m\u001b[38;2;85;85;85m11:02:04\u001b(B\u001b[m\r\u001b[72C\r\u001b[6C"]
[28.495844,"o","\u001b[91mx\u001b[38;2;85;85;85mit\r\u001b[72C\u001b[30m\u001b(B\u001b[m\u001b[38;2;85;85;85m11:02:04\u001b(B\u001b[m\r\u001b[72C\r\u001b[7C"]
[28.496479,"o","\b\b\u001b[34mex\u001b[38;2;85;85;85mit\r\u001b[72C\u001b[30m\u001b(B\u001b[m\u001b[38;2;85;85;85m11:02:04\u001b(B\u001b[m\r\u001b[72C\r\u001b[7C"]
[28.679165,"o","\u001b[34mi\u001b[38;2;85;85;85mt\r\u001b[72C\u001b[30m\u001b(B\u001b[m\u001b[38;2;85;85;85m11:02:04\u001b(B\u001b[m\r\u001b[72C\r\u001b[8C"]
[28.679811,"o","\b\b\b\u001b[91mexi\u001b[38;2;85;85;85mt\r\u001b[72C\u001b[30m\u001b(B\u001b[m\u001b[38;2;85;85;85m11:02:04\u001b(B\u001b[m\r\u001b[72C\r\u001b[8C"]
[28.814306,"o","\u001b[91mt\r\u001b[72C\u001b[30m\u001b(B\u001b[m\u001b[38;2;85;85;85m11:02:04\u001b(B\u001b[m\r\u001b[72C\r\u001b[9C"]
[28.81434,"o","\r\u001b[72C\u001b[38;2;85;85;85m11:02:04\u001b(B\u001b[m\r\u001b[72C\r\u001b[9C"]
[28.814383,"o","\b\b\b\b\u001b[34mexit\r\u001b[72C\u001b[30m\u001b(B\u001b[m\u001b[38;2;85;85;85m11:02:04\u001b(B\u001b[m\r\u001b[72C\r\u001b[9C"]
[29.15179,"o","\r\u001b[72C\u001b[38;2;85;85;85m11:02:04\u001b(B\u001b[m\r\u001b[72C\r\u001b[9C\r\n"]
[29.151846,"o","\u001b[30m\u001b(B\u001b[m"]
[29.152014,"o","\u001b[?2004l"]
[29.153519,"o","\u001b]0;exit ~\u0007"]
[29.153526,"o","\u001b[30m\u001b(B\u001b[m\r"]
[29.153852,"o","\u001b[30m\u001b(B\u001b[m"]
[29.153963,"o","\u001b[?2004l"]
when you change the color palette via escape sequences, you essentially fork it from the colors you set in the config file until you tell the terminal to reset the color palette back to the default. This is so that an application's choice of colors remains intact even if you change the config at runtime.
Looking at your recording, you can see that the program you are running is changing the palette, and resetting just the thing it changed at the end:
$ wezterm replay --explain-only wezterm-recording-ejA1H0.cast.txt | grep -i Dynamic
Action(OperatingSystemCommand(ChangeDynamicColors(TextBackgroundColor, [Query])))
Action(OperatingSystemCommand(ChangeDynamicColors(TextCursorColor, [Color(SrgbaTuple(0.15294118, 0.15294118, 0.15294118, 1.0))])))
Action(OperatingSystemCommand(ChangeDynamicColors(TextCursorColor, [Color(SrgbaTuple(0.15294118, 0.15294118, 0.15294118, 1.0))])))
Action(OperatingSystemCommand(ChangeDynamicColors(TextCursorColor, [Color(SrgbaTuple(0.15294118, 0.15294118, 0.15294118, 1.0))])))
Action(OperatingSystemCommand(ResetDynamicColor(TextCursorColor)))
wezterm doesn't recognize this as the palette being reset completely, so it ends up freezing the palette.
I've pushed a fix for this, so this should be resolved now in main
.
It typically takes about an hour before commits are available as nightly builds for all platforms. Linux builds are the fastest to build and are often available within about 20 minutes. Windows and macOS builds take a bit longer.
Please take a few moments to try out the fix and let me know how that works out. You can find the nightly downloads for your system in the wezterm installation docs.
If you prefer to use packages provided by your distribution or package manager of choice and don't want to replace that with a nightly download, keep in mind that you can download portable packages (eg: a .dmg
file on macOS, a .zip
file on Windows and an .AppImage
file on Linux) that can be run without permanently installing or replacing an existing package, and can then simply be deleted once you no longer need them.
If you are eager and can build from source then you may be able to try this out more quickly.
the nightly version works fine. Thanks for you job!!! But there is still a small problem, changing the system color mode when opening nvim, also cause the same problem.
Is this still an issue in the latest release?
This issue has been automatically closed because there has been no response to our request for more information from the original author. With only the information that is currently in the issue, we don't have enough information to take action. Please reach out if you have or find the answers we need so that we can investigate further.
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.
What Operating System(s) are you seeing this problem on?
macOS
Which Wayland compositor or X11 Window manager(s) are you using?
No response
WezTerm version
wezterm 20230501-084619-d0e9a034
Did you try the latest nightly build to see if the issue is better (or worse!) than your current version?
Yes, and I updated the version box above to show the version of the nightly that I tried
Describe the bug
I want to automatically adjust color scheme to the current appearance, and config like document says.
but the tab color_scheme will never change after nvim closed in current tab.
Newly opened tabs work fine.
To Reproduce
No response
Configuration
Expected Behavior
No response
Logs
No response
Anything else?
No response