Tmux redraws incorrectly when scrolling #19032

Open
opened 2026-01-31 06:31:55 +00:00 by claunia · 0 comments
Owner

Originally created by @andyneff on GitHub (Dec 8, 2022).

Windows Terminal version

1.15.2875.0

Windows build number

10.0.22621.900

Other Software

tmux 3.3a

Steps to reproduce

I've been having this problem since I started using Terminal many month ago. It happens at random, and I've never really been able to reproduce it on demand.

  1. Use tmux for while (often days)
  2. Scroll up
  3. See that the scrolling mechanic is messed up

For a while today, I was able to reproduce it this way (but then it stopped reproducing, so I doubt these step will work for anyone)

  1. Start Terminal in WSL with Fedoraremix
  2. Maximize window (doubt this is important)
  3. tmux
  4. docker run -it --rm alpine
  5. find /usr
  6. Scroll up

Expected Behavior

Scrolling to always work correctly, like so:

image

Actual Behavior

You see the numbers in the upper right messed up, and the actual buffer on screen looks all wrong.
image

Many more details about the redrawing are incorrect, but this is the simplest to explain

The solution is to close Windows Terminal, and restart it again. Luckily, I'm in tmux so that's pretty straight forward. But anything less than restarting the tab does not work. Often creating a new tab usaully works and I don't have to close the entire Windows Terminal window

  • reset does not work
  • Closing tmux and attaching does not work

May be related to #8000 or #6987, but it seemed different enough it might not be.

Originally created by @andyneff on GitHub (Dec 8, 2022). ### Windows Terminal version 1.15.2875.0 ### Windows build number 10.0.22621.900 ### Other Software tmux 3.3a ### Steps to reproduce I've been having this problem since I started using Terminal many month ago. It happens at random, and I've never really been able to reproduce it on demand. 1. Use tmux for while (often days) 2. Scroll up 3. See that the scrolling mechanic is messed up For a while today, I was able to reproduce it this way (but then it stopped reproducing, so I doubt these step will work for anyone) 1. Start Terminal in WSL with Fedoraremix 2. Maximize window (doubt this is important) 3. `tmux` 4. `docker run -it --rm alpine` 5. `find /usr` 6. Scroll up ### Expected Behavior Scrolling to always work correctly, like so: ![image](https://user-images.githubusercontent.com/7596961/206561530-c4287b18-2b0b-42ee-9b95-15cce25ff613.png) ### Actual Behavior You see the numbers in the upper right messed up, and the actual buffer on screen looks all wrong. ![image](https://user-images.githubusercontent.com/7596961/206561215-9a4e4735-fa59-44fd-9a8f-10252df7601a.png) Many more details about the redrawing are incorrect, but this is the simplest to explain The solution is to close Windows Terminal, and restart it again. Luckily, I'm in tmux so that's pretty straight forward. But anything less than restarting the tab does not work. Often creating a new tab usaully works and I don't have to close the entire Windows Terminal window - `reset` does not work - Closing tmux and attaching does not work May be related to #8000 or #6987, but it seemed different enough it might not be.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#19032