-
Notifications
You must be signed in to change notification settings - Fork 796
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
tmux prints garbage around prompt after attaching when escape-time is 0 #1638
Comments
Out of curiosity, @robbiev why are you setting escape-time to 0? I haven't really seen this before, so I'll investigate it, but I'm curious why someone would do this. |
I think the reason was as described in the "Faster Command Sequences" section here: https://mutelight.org/practical-tmux
I've had this in my |
This is also commonly used by VIM users inside tmux - without this setting, one has to wait for the standard delay to pass before hitting ESC returns to command mode, etc. |
I had this problem too, but setting |
Thanks for the discussion. Closing this issue since:
If you have further asks/issues, please file new issues on our Console GitHub Repo. |
Fixes an issue with the Windows terminal. See microsoft/WSL#1638
See: microsoft/WSL#1638 The plugin tmux-sensible sets escape-time to 0, which display an escape character in tmux under Windows Terminal. Setting the value to 20 is a sensibler default which also works around the issue.
Please use the following bug reporting template to help produce actionable and reproducible issues. Please try to ensure that the reproduction is minimal so that the team can go through more bugs!
Setting the tmux escape time to zero prints escape code garbage around the initial prompt. It also happens when re-attaching tmux after detaching. It does not happen when creating windows inside tmux. The garbage printed looks like responses to terminal type queries (see http://docstore.mik.ua/orelly/unix/upt/ch05_05.htm and the response for base VT100 there) that I guess tmux does when attaching.
I expect the prompt to look like this:
robbie@SERIES9:~$
Some escape code garbage is printed around the prompt:
^[[?1;0crobbie@SERIES9:~$ 1;0c
Your Windows build number
10.0.14393 Build 14393
Steps / All commands required to reproduce the error from a brand new installation
Strace of the failing command
/
Required packages and commands to install
tmux
See our contributing instructions for assistance.
The text was updated successfully, but these errors were encountered: