Skip to content

Commit b1b01dc

Browse files
committedJul 29, 2022
tmux: prevent WezTerm version injection on attach
WezTerm would inject this version string into tmux as human-typed input: 0;10;1c>|WezTerm 20220408-101518-b908e2dd This would trigger my Alt+Shift+P shortcut in tmux, prompting for input. Pressing anything other than escape at this point would crash tmux 3.2a. This patch solves the problem by slowing down tmux's recognition of my escape key presses. See microsoft/WSL#5931
1 parent dea9fa8 commit b1b01dc

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed
 

‎.tmux.conf.erb

+2-1
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,8 @@ set-option -g focus-events on
5353
set-window-option -g xterm-keys on
5454

5555
# prevent tmux from catching modifier keys meant for Vim
56-
set-option -s escape-time 0
56+
# (set > 0: https://github.com/microsoft/WSL/issues/5931)
57+
set-option -s escape-time 1
5758

5859
# enable 24-bit true color RGB escape sequences under st
5960
# https://sunaku.github.io/tmux-24bit-color.html

0 commit comments

Comments
 (0)
Failed to load comments.