ED2 inserts loads of blank lines in scrollback #21136

Open
opened 2026-01-31 07:34:13 +00:00 by claunia · 0 comments
Owner

Originally created by @j4james on GitHub (Jan 25, 2024).

Windows Terminal version

1.19.3172.0

Windows build number

10.0.19045.3930

Other Software

No response

Steps to reproduce

  1. Open a WSL bash shell in Windows Terminal.

  2. Execute the following set of commands:

    cd /bin
    ls -la
    printf "\e[3J"
    ls -la
    printf "\e[3J"
    printf "\e[2J"
    
  3. Scroll up to view the scrollback buffer.

Expected Behavior

You should see the last lines of the /bin directory listing and the two printf commands.

Actual Behavior

The buffer immediately above the visible viewport is blank, and you have to scroll back for pages to find the previous content.

Reproducing this might be a bit tricky, because if I replace the ls -la with something like seq 1000, the bug isn't triggered. There must be something about the directory listing that's a factor, and hopefully it's not specific to my directory content. And in case it makes any difference, my screen size is 80x24.

It's also worth noting that I can reproduce this in a recent version of OpenConsole, but not in my inbox ConHost (Windows 10), so it looks like it might be a regression.

Originally created by @j4james on GitHub (Jan 25, 2024). ### Windows Terminal version 1.19.3172.0 ### Windows build number 10.0.19045.3930 ### Other Software _No response_ ### Steps to reproduce 1. Open a WSL bash shell in Windows Terminal. 2. Execute the following set of commands: ```bash cd /bin ls -la printf "\e[3J" ls -la printf "\e[3J" printf "\e[2J" ``` 4. Scroll up to view the scrollback buffer. ### Expected Behavior You should see the last lines of the `/bin` directory listing and the two `printf` commands. ### Actual Behavior The buffer immediately above the visible viewport is blank, and you have to scroll back for pages to find the previous content. Reproducing this might be a bit tricky, because if I replace the `ls -la` with something like `seq 1000`, the bug isn't triggered. There must be something about the directory listing that's a factor, and hopefully it's not specific to my directory content. And in case it makes any difference, my screen size is 80x24. It's also worth noting that I can reproduce this in a recent version of OpenConsole, but not in my inbox ConHost (Windows 10), so it looks like it might be a regression.
claunia added the Product-ConhostIssue-BugIn-PRArea-VTNeeds-Tag-FixzInbox-Bug labels 2026-01-31 07:34:13 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#21136