Previous command disappears from the terminal output when it fills the current terminal height #17128

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

Originally created by @danilaml on GitHub (Apr 1, 2022).

Windows Terminal version

1.11.3471.0

Windows build number

10.0.19043.0

Other Software

No response

Steps to reproduce

I've first discovered this issue in VS Code and described it (with the gifs and steps to reproduce) here: https://github.com/microsoft/vscode/issues/146450
I was able to reproduce it in the latest Windows Terminal.

Expected Behavior

When scrolling back the command output is delimited by the commands themselves.
image

Actual Behavior

The problematic command disappears from the output, "merging" the two commands stdout together (in the images below the output after the empty line was generated by python -c "print('foo\n' * 27)").
image
image

Originally created by @danilaml on GitHub (Apr 1, 2022). ### Windows Terminal version 1.11.3471.0 ### Windows build number 10.0.19043.0 ### Other Software _No response_ ### Steps to reproduce I've first discovered this issue in VS Code and described it (with the gifs and steps to reproduce) here: https://github.com/microsoft/vscode/issues/146450 I was able to reproduce it in the latest Windows Terminal. ### Expected Behavior When scrolling back the command output is delimited by the commands themselves. ![image](https://user-images.githubusercontent.com/2046350/161256507-bbdb2b6d-b099-405c-ba6d-6491f6447f06.png) ### Actual Behavior The problematic command disappears from the output, "merging" the two commands stdout together (in the images below the output after the empty line was generated by `python -c "print('foo\n' * 27)"`). ![image](https://user-images.githubusercontent.com/2046350/161256642-baacfbf5-8c7a-4fa7-ad34-7538a3d4cd63.png) ![image](https://user-images.githubusercontent.com/2046350/161255838-bbb56806-764c-43e6-a4ba-09bfa1dfb734.png)
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#17128