Open sersorrel opened 6 years ago
Supporting this issue also due to this StackOverflow answer.
TL;DR: escape-time
should never be set to 0
, but rather something small like a value between 5
and 100
. Otherwise it can cause weird bugs where escape sequences fragmented over multiple packets are not recognized properly.
I have the following in my .tmux.conf to switch windows with alt-h and alt-l:
and sometimes with
escape-time
set to 0 by tmux-sensible, then^[h
or^[l
will be echoed in the terminal rather than switching windows. Settingescape-time
to 10 seems to fix the problem without adding any noticeable delays when pressing esc elsewhere (for example in Vim) – could this be made the default in tmux-sensible?