tmux-sensible icon indicating copy to clipboard operation
tmux-sensible copied to clipboard

Setting escape-time to 0 makes bindings using alt/meta not always work

Open sersorrel opened this issue 7 years ago • 1 comments

I have the following in my .tmux.conf to switch windows with alt-h and alt-l:

bind -n M-h previous-window                                                      
bind -n M-l next-window

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. Setting escape-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?

sersorrel avatar Oct 23 '17 12:10 sersorrel

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.

linden-slam avatar Oct 18 '23 08:10 linden-slam