-
Notifications
You must be signed in to change notification settings - Fork 92
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 chars on session start #61
Comments
Seems it works only for the first time start a Session, if you exit current session and run |
Can we somehow identify WSL (with an env var for example) so we can set |
@bruno- but for my case problem didn't slove by set it prefectly. |
@roachsinai , hm ok, I understand now. Please update this thread if you find a proper solution. |
@roachsinai, is your issue reproducible? For me setting Edit: I was too eager to announce the issue being solved for me. I have all my config (except declaration of plugins) in a shell script that I call with |
I have very much the same issue not in WSL but on FreeBSD 13.1 and FreeBSD 14.0 (ssh-ed in from Windows Terminal). Increasing |
I don't know why I had set it to 0 before, but using oh-my-zsh to auto-start tmux with an escape time of 0 causes it to spit out some ANSI shit every time. Changing it to 50 fixes that. See tmux-plugins/tmux-sensible#61
This reduces the frequency of the problem for me, but does not eliminate it. I'm shelling from Windows 11 into a remote Debian Bullseye bash. I have tried escape-time values of 0, 10, 20, and 50. |
I also have Interestingly, this problem does not occur in the older version 3.1c. Setting |
The problem still occurs for me after downgrading to 3.1c on Debian Bullseye. |
I think I might have fixed it. For some reason, setting the environment variable EDIT: thinking about it a bit more, it makes sense that this solves the issue. The terminal is no longer queried for the capabilities by tmux, because tmux already has already been told about the capabilities via For reference, this what I put in my |
This does solve the problem also for me (I used to have |
Thanks, this works for me too. Great workaround. |
Late to the convo but if you just want to change the TERM for tmux only you can add this to the top of your tmux.conf file set -g default-terminal "tmux-256color"
set -ga terminal-overrides ",tmux-256color:Tc" Edit: needs override as well |
On session start tmux prints
0;10;1c
.See also here: microsoft/WSL#5931.
This seems to be related to escape-time.
In
~/.tmux.conf
fixes the issue for me.
The text was updated successfully, but these errors were encountered: