microsoft / terminal

The new Windows Terminal and the original Windows console host, all in the same place!
MIT License
94.74k stars 8.2k forks source link

maximize inserts extra empty lines #16703

Open 3052 opened 6 months ago

3052 commented 6 months ago

Windows Terminal version

terminal-1.19.10302.0

Windows build number

10.0.18363.0

Other Software

No response

Steps to reproduce

take this file:

https://github.com/microsoft/terminal/files/14251165/hello.txt

open terminal, and move it to half the screen with Windows+Left or Windows+Right. print file:

Get-Content hello.txt

notice because of the line width, the rows wrap around:

wrap

you might need to reduce window width further depending on monitor/font size. the above is expected, but I would assume that maximizing the window fixes the problem, it does not:

broken

Expected Behavior

No response

Actual Behavior

notice the random empty lines. note I also tested with:

terminal-1.20.10303.0

o-sdn-o commented 6 months ago

It appears that trailing whitespace characters carried to the next line during initial output are not considered printable characters and will not be returned to their line when the window is expanded.

image

image

carlos-zamora commented 6 months ago

Thanks for the repro. We'll take a look at this.