Issue: screen buffer height limited to 9028 lines #5052

Open
opened 2026-01-31 00:03:53 +00:00 by claunia · 0 comments
Owner

Originally created by @ffays on GitHub (Nov 18, 2019).

Description

When setting the screen buffer height, with the command mode con lines=32766 it appears that the maximum number of lines kept in the buffer are 9028 lines.

Would it be possible that the Windows Terminal to be at least backward compatible with both cmd.exe and powershell.exe consoles?

Environment

Windows build number: 10.0.18362.0
Windows Terminal version: 0.6.2951.0

Steps to reproduce

Using cmd.exe

mode con lines=32766 & powershell -Command "for($i=1;$i -le 32764;$i++){Write-Host $i}"

Using powershell.exe

mode con lines=32766; for($i=1;$i -le 32765;$i++){Write-Host $i}

Expected behavior

Expecting that line with number "1" to be shown at the very begining of the buffer.

Actual behavior

Using cmd.exe

First line of the buffer is number 23738

Using powershell.exe

First line of the buffer is number 23739

Post Scriptum

If you could go beyond the 32766 lines limit that ages from the 16 bit era, it will be fantastic (c.f. feature request #3612)!

Originally created by @ffays on GitHub (Nov 18, 2019). # Description When setting the screen buffer height, with the command `mode con lines=32766` it appears that the maximum number of lines kept in the buffer are 9028 lines. Would it be possible that the Windows Terminal to be at least backward compatible with both cmd.exe and powershell.exe consoles? # Environment Windows build number: 10.0.18362.0 Windows Terminal version: 0.6.2951.0 # Steps to reproduce ### Using cmd.exe ``` mode con lines=32766 & powershell -Command "for($i=1;$i -le 32764;$i++){Write-Host $i}" ``` ### Using powershell.exe ``` mode con lines=32766; for($i=1;$i -le 32765;$i++){Write-Host $i} ``` <!-- A description of how to trigger this bug. --> # Expected behavior Expecting that line with number "1" to be shown at the very begining of the buffer. # Actual behavior ### Using cmd.exe First line of the buffer is number 23738 ### Using powershell.exe First line of the buffer is number 23739 # Post Scriptum If you could go beyond the 32766 lines limit that ages from the 16 bit era, it will be fantastic (c.f. feature request #3612)!
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#5052