-
Notifications
You must be signed in to change notification settings - Fork 8.4k
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 pane content gets garbled after refreshing tmux client #4029
Comments
Within
I'm able to reproduce this issue every time. |
@maverickdas There must be something specific to your setup then that's causing this, because I still can't get this to repro.
|
I'm using Source Code Pro font and
Ubuntu 1804. kernel - 4.19.84
|
Would you mind also sharing the output of |
Output of
|
I'm also having this issue with tmux, but it doesn't happen with only htop. Example: If I split tmux vertically and move to the new panel the bottom area of the terminal starts getting garbled. |
Fortunately, that one doesn't matter! |
Not sure if this would help debug the issue, but I just noticed that floating windows in neovim inside tmux also suffer from a similar issue, where part of them will be rendered on the left side of the terminal. When the floating window is closed, it leaves some artifacts behind at the edge of the screen: This doesn't happen when running neovim outside tmux. |
@edrpls - this is fixed for me in the latest preview 1.1.1812.0 |
Thanks @fergalmoran, I'll try that version. |
I have been testing out preview 1.1.1812.0, and while the issue is not as frequent, it still happens with vertical panes. |
Is the character still 0x0f when you’re seeing the issue with vertical panes? |
@DHowett I'm not sure, since it happens very rarely now, it's difficult to debug, so it's not that much of an issue now. I'll try to get more data if next time it happens. |
Whoa. It looks like something disabled UTF-8 handling. You're totally right about that. Tell me, is this under the MSYS2/Cygwin runtime? |
Just wanted to note that I was in the same situation and this also "fixed" it for me. Default install of Ubuntu 20.10 in WSL2, using Terminal 1.4.3243.0 from the Store. Before switching to en_US.UTF8 I would sometimes get corruption (mostly when color escape codes were used in weechat, or some combination of tmux, htop, etc). After changing to en_US.UFT8 there is still some improper behavior, e.g.: With C.UTF8, the formatting of the blue URL would get broken and cause random other lines of the window to be overwritten. The nickname is using a unicode zero-width space: https://github.com/dolphin-emu/sadm/blob/38433caf317fafb66c46efdbf6bed03fbf9d21c0/central/ircclient.py#L108 edit: actually, there is still some corruption (although not as bad). ok...last update 😅 |
This may be a red herring, but it seem that if I ssh to a host with an identical infocmp both inside + outside of tmux, rendering behaves normally --- this rendering issue only happens for me in a tmux running locally (WSL2). |
I haven't seen this issue for the past few months using preview builds but in the last few days it started happening consistently. Always the same setup, 2 horizontal tmux panes with vim in the top pane (split vertically). This issue went away when I switched to the newest stable release (Windows Terminal v1.10.2714.0). |
I have 1.11.3471.0 |
This may be a tmux configuration issue. The problem seems to be fixed after I set |
Looks like that the corruption happens when the minute changes, so it's somehow related to the time display. a few months later... — happened to have the same tmux session being displayed on two different screens from two different OS's and noticed that only the macos iTerm2 session was suffering from mangled display. Same session in Apple's ootb Terminal.apps is totally fine. |
for x-linking purposes: #6987 |
Hey it's been years since we've heard anything about this - is anyone still hitting this on 1.22 Preview/? That version has a wholly re-written conpty that does away with a lot of old bugs |
I fixed the issue at the time by setting utf8 in tmux. I am using 1.22 and not getting any issues at all. I have had issues in other terminals (Alacritty and WezTerm) with weird fonts (half-width fonts and some other issues) that have left tmux garbled on Windows but not in Windows Terminal. An aside, it would be really nice for the terminal ecosystem on windows, if the authors of those other terminals (and wsltty as well) had a better documented way of using conpty correctly. Usually when issues come up with other terminals, it's almost always windows specific and it's almost always because of incorrect conpty or incorrect use of conpty. |
This issue has been automatically marked as stale because it has been marked as requiring author feedback but has not had any activity for 4 days. It will be closed if no further activity occurs within 3 days of this comment. |
Environment
Steps to reproduce
htop
,top
inside a tmux pane:refresh-client
) to refresh the tmux client(I actually faced this problem during the course of my but was later able to reproduce it using steps 1 and 2.
Expected behavior
Nothing should happen. The command mentioned in step 1 should continue to run without any changes. In fact, that is what happens in minTTY terminal that ships by default with WSL.
Actual behavior
The output from
htop
gets garbled. Only the changing parts of the text, like fluctuating RAM usage, reordering of processes gets reflected. See the given screenshots in this Reddit post.The text was updated successfully, but these errors were encountered: