Missing lines in the output when using with PowerShell #7877

Open
opened 2026-01-31 01:14:51 +00:00 by claunia · 0 comments
Owner

Originally created by @Vlad-Shcherbina on GitHub (May 2, 2020).

Environment

Windows build number: Microsoft Windows NT 10.0.18363.0
Windows Terminal version (if applicable):  0.11.1191.0

Any other software?

Powershell:
Major  Minor  Build  Revision
-----  -----  -----  --------
5      1      18362  752

CPython, version irrelevant. Doesn't even have to be Python,
it's just what I happened to use in the repro steps below.

Steps to reproduce

  1. Create the following Python program:
    for i in range(30):
        print('*' * 20)
        print('-' * 20)
    
  2. Open Windows PowerShell tab.
  3. Run this program: python hello.py
  4. Run this program again: python hello.py
  5. Scroll up using mouse wheel.

Expected behavior

PS C:\temp> python hello.py
********************
--------------------
********************
--------------------
********************
--------------------
********************
--------------------
********************
--------------------
********************
--------------------
********************
--------------------
********************
--------------------
********************
--------------------
********************
--------------------
********************
--------------------
********************
--------------------
********************
--------------------
********************
--------------------
********************
--------------------
********************
--------------------
********************
--------------------
********************
--------------------
********************
--------------------
********************
--------------------
********************
--------------------
********************
--------------------
********************
--------------------
********************
--------------------
********************
--------------------
********************
--------------------
********************
--------------------
********************
--------------------
********************
--------------------
********************
--------------------
PS C:\temp> python hello.py
********************
--------------------
********************
--------------------
********************
--------------------
********************
--------------------
********************
--------------------
********************
--------------------
********************
--------------------
********************
--------------------
********************
--------------------
********************
--------------------
********************
--------------------
********************
--------------------
********************
--------------------
********************
--------------------
********************
--------------------
********************
--------------------
********************
--------------------
********************
--------------------
********************
--------------------
********************
--------------------
********************
--------------------
********************
--------------------
********************
--------------------
********************
--------------------
********************
--------------------
********************
--------------------
********************
--------------------
********************
--------------------
********************
--------------------
********************
--------------------
PS C:\temp>

Actual behavior

PS C:\temp> python hello.py
********************
--------------------
********************
--------------------
********************
--------------------
********************
--------------------
********************
--------------------
********************
--------------------
********************
--------------------
********************
--------------------
********************
--------------------
********************
--------------------
********************
--------------------
********************
--------------------
********************
--------------------
********************
--------------------
********************
--------------------
********************
--------------------
********************
--------------------
********************
--------------------
********************
--------------------
--------------------
********************
--------------------
********************
--------------------
********************
--------------------
********************
--------------------
********************
--------------------
********************
--------------------
********************
--------------------
********************
--------------------
********************
--------------------
********************
--------------------
PS C:\temp> python hello.py
********************
--------------------
********************
--------------------
********************
--------------------
********************
--------------------
********************
--------------------
********************
--------------------
********************
--------------------
********************
--------------------
********************
--------------------
********************
--------------------
********************
--------------------
********************
--------------------
********************
--------------------
********************
--------------------
********************
--------------------
********************
--------------------
********************
--------------------
********************
--------------------
********************
--------------------
********************
--------------------
********************
--------------------
********************
--------------------
********************
--------------------
********************
--------------------
********************
--------------------
********************
--------------------
********************
--------------------
********************
--------------------
********************
--------------------
********************
--------------------
PS C:\temp>
Originally created by @Vlad-Shcherbina on GitHub (May 2, 2020). # Environment ```none Windows build number: Microsoft Windows NT 10.0.18363.0 Windows Terminal version (if applicable): 0.11.1191.0 Any other software? Powershell: Major Minor Build Revision ----- ----- ----- -------- 5 1 18362 752 CPython, version irrelevant. Doesn't even have to be Python, it's just what I happened to use in the repro steps below. ``` # Steps to reproduce 1. Create the following Python program: ```python for i in range(30): print('*' * 20) print('-' * 20) ``` 2. Open Windows PowerShell tab. 3. Run this program: `python hello.py` 4. Run this program again: `python hello.py` 5. Scroll up using mouse wheel. # Expected behavior ``` PS C:\temp> python hello.py ******************** -------------------- ******************** -------------------- ******************** -------------------- ******************** -------------------- ******************** -------------------- ******************** -------------------- ******************** -------------------- ******************** -------------------- ******************** -------------------- ******************** -------------------- ******************** -------------------- ******************** -------------------- ******************** -------------------- ******************** -------------------- ******************** -------------------- ******************** -------------------- ******************** -------------------- ******************** -------------------- ******************** -------------------- ******************** -------------------- ******************** -------------------- ******************** -------------------- ******************** -------------------- ******************** -------------------- ******************** -------------------- ******************** -------------------- ******************** -------------------- ******************** -------------------- ******************** -------------------- ******************** -------------------- PS C:\temp> python hello.py ******************** -------------------- ******************** -------------------- ******************** -------------------- ******************** -------------------- ******************** -------------------- ******************** -------------------- ******************** -------------------- ******************** -------------------- ******************** -------------------- ******************** -------------------- ******************** -------------------- ******************** -------------------- ******************** -------------------- ******************** -------------------- ******************** -------------------- ******************** -------------------- ******************** -------------------- ******************** -------------------- ******************** -------------------- ******************** -------------------- ******************** -------------------- ******************** -------------------- ******************** -------------------- ******************** -------------------- ******************** -------------------- ******************** -------------------- ******************** -------------------- ******************** -------------------- ******************** -------------------- ******************** -------------------- PS C:\temp> ``` # Actual behavior ``` PS C:\temp> python hello.py ******************** -------------------- ******************** -------------------- ******************** -------------------- ******************** -------------------- ******************** -------------------- ******************** -------------------- ******************** -------------------- ******************** -------------------- ******************** -------------------- ******************** -------------------- ******************** -------------------- ******************** -------------------- ******************** -------------------- ******************** -------------------- ******************** -------------------- ******************** -------------------- ******************** -------------------- ******************** -------------------- ******************** -------------------- -------------------- ******************** -------------------- ******************** -------------------- ******************** -------------------- ******************** -------------------- ******************** -------------------- ******************** -------------------- ******************** -------------------- ******************** -------------------- ******************** -------------------- ******************** -------------------- PS C:\temp> python hello.py ******************** -------------------- ******************** -------------------- ******************** -------------------- ******************** -------------------- ******************** -------------------- ******************** -------------------- ******************** -------------------- ******************** -------------------- ******************** -------------------- ******************** -------------------- ******************** -------------------- ******************** -------------------- ******************** -------------------- ******************** -------------------- ******************** -------------------- ******************** -------------------- ******************** -------------------- ******************** -------------------- ******************** -------------------- ******************** -------------------- ******************** -------------------- ******************** -------------------- ******************** -------------------- ******************** -------------------- ******************** -------------------- ******************** -------------------- ******************** -------------------- ******************** -------------------- ******************** -------------------- ******************** -------------------- PS C:\temp> ```
claunia added the Resolution-ExternalNeeds-Tag-Fix labels 2026-01-31 01:14:51 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#7877