-
Notifications
You must be signed in to change notification settings - Fork 8.5k
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 status line fills up the buffer #176
Comments
I just installed windows terminal and hoped this issue would be fixed since its a new tech stack, but the issue remains. Any chance someone can look at this? Its one of a few text formatting bugs I've noticed with windows terminal which prevent me from using it |
You can reproduce this issue with this minimal .tmux.conf:
|
Turns out I had "export TERM=screen-256color" in my .bashrc. |
I am experiencing the issue listed here, under Troubleshooting > Status line is broken and/or gets duplicated at the bottom of the screen. What gives?
This happens when I ssh into a box with tmux installed. I have not been able to resolve it. It seems to happen with both WSL1 and WSL3 (with Ubuntu from the Microsoft Store). Things get especially screwy when I try to type, because there is a mismatch between where it looks like the cursor is / where it should be and where what I type is being printed. When I first connect, everything seems normal. Every time the tmux status line updates, it actually pushes everything up one row, duplicating itself. If no commands are input then this will happen until the screen is completely filled. Some things, such as entering vim, will clear the screen, but the process will just start over as long as the tmux status line is present and updating. Notice in the image above where "ls" is printed - inside of the duplicated status line. I have redacted some parts of this image in orange. It gets even weirder when using vim; characters are printed all over the place. It's totally unusable. Note: this does not happen when using MobaXTerm, so I am assuming that the problem is not with WSL, but with this, the terminal. |
I get this even with xterm-256color both over ssh and WSL2 - it's preventing me from using WT as my daily terminal. |
Hi - sorry for the noise but @shanselman asked me via email to ping this issue. Here is a minimal tmux.conf repro.
And here is a screenshot of tmux running in the terminal using WSL2 (same issue over an SSH connection to and number of Linux hosts. |
@shanselman knows how we handle bugs in this repository. |
@DHowett-MSFT sorry, I'd asked for a Bug Report ;) |
Apologies if I've done something wrong, @shanselman you did ask me for a bug report, I pointed out there was already an open one, you told me "Maybe ping it and add your screenshots." which I did. I'm happy to open another issue but this one describes the problem perfectly? I'm also happy to give remote access to my PC if this helps anyone? |
Oh, you haven't done anything wrong 😄 sorry about being crabby. Everything you've done is great. I just can't reproduce it! |
Did you set TERM per my comment higher up? |
If I set Incidentally, setting Fergal, can you confirm |
Yes - TERM is set as per @BarrettStephen 's comment And this is TERM within a tmux session - apologies for the artifacts.... but y'know... this bug!! :) |
Curious. |
No problem..
|
I was hoping for something more dramatic.
|
I'm somewhat surprised
|
Apologies for not being dramatic enough I was setting TERM=xterm-256color in my .zshrc - I've removed that now and TERM is set to Clearly I'm doing something wrong but at a loss. For what it's worth, tmux works perfectly using putty, mobaxterm or any number of terminals running natively on Linux with the same zsh & tmux settings. I only see this behaviour using Windows Terminal. |
Could you copy/paste one of those unexpected squares into |
YES. Okay, we have proximal cause. There's an open pull request that actually adds support for SI/SO and friends, but it's huge so we haven't yet had a chance to review it. I know this bug's got a nice low number, but I'm going to close it as a /dupe of #3487. The other person who reported the same issue has the same boxes in their output. |
Hi! We've identified this issue as a duplicate of another one that already exists on this Issue Tracker. This specific instance is being closed in favor of tracking the concern over on the referenced thread. Thanks for your report! |
Thanks so much for your help, @fergalmoran. And yes, thanks @shanselman for telling Fergal to refresh us on this issue 😄 |
No problem at all and thank you for all your help here!! Absolutely love this terminal and use it all the time with Powershell - will be delighted to be able to use it with Linux! |
@fergalmoran If you get a chance, could you share the output of |
@DHowett-MSFT - sure! (I'm in Ireland, hence the en_IE 😄 )
|
Thanks! I was hoping it would shed some light on why tmux thinks it has to use the alternative character set control codes (because if we can suppress that I can unblock you 😄) |
@DHowett-MSFT I'm going to build the PR tomorrow morning when I'm back at my Windows PC and see if it changes anything, I'll let you know how I get on. Hopefully that can shed some light. |
Filed re: discussion on https://www.reddit.com/r/bashonubuntuonwindows/comments/8j6xbt/vim_tmux_on_wsl/
sam007961
zadjii
The text was updated successfully, but these errors were encountered: