last line of terminal is not used #3159

Closed
opened 2026-01-30 23:14:23 +00:00 by claunia · 3 comments
Owner

Originally created by @wolf99 on GitHub (Aug 5, 2019).

Environment

Windows build number: [Version 10.0.18362.239]
Windows Terminal version (if applicable):  0.3.2142.0

Steps to reproduce

  1. Open terminal
  2. Run some command that produces output that extends past the bottom of the window (e.g. dir on a directory containing lots of files)

Expected behavior

Output fills all lines of the terminal (such as in cmd)

Actual behavior

Last line is always blank - acts as if there's some kind of invisible window chrome here

For example, in both the below images, the output extends past the bottom of the window (i.e. scrolling reveals more output below what is currently shown)
The first is in WSL terminal, and uses all lines within the window. The second is in Windows Terminal, the last line is blank; this occurs for all shells within this terminal. (Note that while it is not readily apparent from the screen shots, there are actually further files in the directory listing output than are shown so the last line should actually display the next file in the list)

image

image

Originally created by @wolf99 on GitHub (Aug 5, 2019). # Environment ```none Windows build number: [Version 10.0.18362.239] Windows Terminal version (if applicable): 0.3.2142.0 ``` # Steps to reproduce 1. Open terminal 2. Run some command that produces output that extends past the bottom of the window (e.g. `dir` on a directory containing lots of files) # Expected behavior Output fills all lines of the terminal (such as in cmd) # Actual behavior Last line is always blank - acts as if there's some kind of invisible window chrome here For example, in both the below images, the output extends past the bottom of the window (i.e. scrolling reveals more output below what is currently shown) The first is in WSL terminal, and uses all lines within the window. The second is in Windows Terminal, the last line is blank; this occurs for all shells within this terminal. (Note that while it is not readily apparent from the screen shots, there are actually further files in the directory listing output than are shown so the last line should actually display the next file in the list) ![image](https://user-images.githubusercontent.com/281700/62485274-31434800-b7b4-11e9-8411-0b29b2384a4f.png) ![image](https://user-images.githubusercontent.com/281700/62485000-600cee80-b7b3-11e9-84a0-564448733030.png)
claunia added the Needs-TriageNeeds-AttentionResolution-Duplicate labels 2026-01-30 23:14:23 +00:00
Author
Owner

@zadjii-msft commented on GitHub (Aug 5, 2019):

I bet this is because the last line in the terminal is just shorter than an actual line. If you resize the terminal to be just slightly taller, does the line appear?

I'm certain there's another issue (#2061) out there tracking the fact that the initialCols setting is a little off right now. That's what's probably causing the window to not be the right size, resulting in this last line that's just barely not the right size.

@zadjii-msft commented on GitHub (Aug 5, 2019): I bet this is because the last line in the terminal is _just shorter_ than an actual line. If you resize the terminal to be just slightly taller, does the line appear? I'm _certain_ there's another issue (#2061) out there tracking the fact that the `initialCols` setting is a little off right now. That's what's probably causing the window to not be the right size, resulting in this last line that's just barely not the right size.
Author
Owner

@mcpiroman commented on GitHub (Aug 5, 2019):

But maybe terminal could also render the last line (and last row) even if it doesn't fit entirely

@mcpiroman commented on GitHub (Aug 5, 2019): But maybe terminal could also render the last line (and last row) even if it doesn't fit entirely
Author
Owner

@wolf99 commented on GitHub (Aug 5, 2019):

🤦‍♂ This does seem to resolve it!
Close in favour of #2061 then :)

@wolf99 commented on GitHub (Aug 5, 2019): 🤦‍♂ This does seem to resolve it! Close in favour of #2061 then :)
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#3159