Skip to content

ED2 inserts loads of blank lines in scrollback #16603

@j4james

Description

@j4james

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Area-VTVirtual Terminal sequence supportIn-PRThis issue has a related PRIssue-BugIt either shouldn't be doing this or needs an investigation.Needs-Tag-FixDoesn't match tag requirementsProduct-ConhostFor issues in the Console codebasezInbox-BugIgnore me!

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions