Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
sersorrel opened this issue Oct 23, 2017 · 1 comment
Open

Comments

@sersorrel
Copy link

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?

@linden-slam
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants