initialRows still isn't working completely right #8840

Open
opened 2026-01-31 01:39:16 +00:00 by claunia · 0 comments
Owner

Originally created by @keathmilligan on GitHub (Jun 5, 2020).

Environment

Windows build number: 10.0.19041.0
Windows Terminal version (if applicable): 1.0.1401.0

Steps to reproduce

Set InitialRows to 40.
Open Windows Terminal.
In Powershell, run:

for ($i = 1; $i -le 40; $i++) { Write-Host; Write-Host -NoNewLine $i }; [console]::ReadKey()

Expected behavior

You should see all 40 rows.

Actual behavior

Instead, you only see rows 2-40. The area of the window that should contain the last row is not used:

image

Now grab the bottom edge of the window, shrink it by one and then return it to its original size. Run the script above again and see that all 40 rows are now displayed with the last row being utilized.

image

Originally created by @keathmilligan on GitHub (Jun 5, 2020). # Environment ```none Windows build number: 10.0.19041.0 Windows Terminal version (if applicable): 1.0.1401.0 ``` # Steps to reproduce Set InitialRows to 40. Open Windows Terminal. In Powershell, run: ```powershell for ($i = 1; $i -le 40; $i++) { Write-Host; Write-Host -NoNewLine $i }; [console]::ReadKey() ``` # Expected behavior You should see all 40 rows. # Actual behavior Instead, you only see rows 2-40. The area of the window that should contain the last row is not used: ![image](https://user-images.githubusercontent.com/2936304/83914040-132cd800-a736-11ea-918d-f2bda99111ad.png) Now grab the bottom edge of the window, shrink it by one and then return it to its original size. Run the script above again and see that all 40 rows are now displayed with the last row being utilized. ![image](https://user-images.githubusercontent.com/2936304/83914091-2b9cf280-a736-11ea-8891-6e47320b9d95.png)
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#8840