Console bash does not update number of lines correctly after resize using only height of window #179

Closed
opened 2026-01-30 21:44:49 +00:00 by claunia · 2 comments
Owner

Originally created by @cgerdes1 on GitHub (Mar 3, 2018).

Windows version 10.0.16299.248

If the Console Window is resized using only the top or bottom window border (resizing only its height) the bash terminal is not updated with the new number of lines. The number of lines is only updated if the width of the Console window is modified.

Example:

2018-03-03 20_08_33-uranus__home

We now resize the window using the bottom border and make it taller:

2018-03-03 20_10_47-uranus__home

The number of lines is not updated! We now resize the window using the right border and make it wider as well:

2018-03-03 20_11_35-uranus__home

Now the number of lines in the terminal have been updated.

Originally created by @cgerdes1 on GitHub (Mar 3, 2018). Windows version 10.0.16299.248 If the Console Window is resized using only the top or bottom window border (resizing only its height) the bash terminal is not updated with the new number of lines. The number of lines is only updated if the width of the Console window is modified. Example: ![2018-03-03 20_08_33-uranus__home](https://user-images.githubusercontent.com/27770842/36938209-ac27ce36-1f1e-11e8-9962-e2d7b35cb119.png) We now resize the window using the bottom border and make it taller: ![2018-03-03 20_10_47-uranus__home](https://user-images.githubusercontent.com/27770842/36938219-fc9981e8-1f1e-11e8-86c2-10655a80e88e.png) The number of lines is not updated! We now resize the window using the right border and make it wider as well: ![2018-03-03 20_11_35-uranus__home](https://user-images.githubusercontent.com/27770842/36938222-15cc40ce-1f1f-11e8-920a-66cfeae6f209.png) Now the number of lines in the terminal have been updated.
claunia added the Product-Conhost label 2026-01-30 21:44:49 +00:00
Author
Owner

@zadjii-msft commented on GitHub (Mar 5, 2018):

I'm 100% certain that there's an issue that tracks this in some GH repo somewhere, but I can't for the life of me find it right now.

Regardless, I know that this should be fixed in Insider's builds currently, I believe any newer that 17090 will have it.

@zadjii-msft commented on GitHub (Mar 5, 2018): I'm 100% certain that there's an issue that tracks this in some GH repo somewhere, but I can't for the life of me find it right now. Regardless, I know that this should be fixed in Insider's builds currently, I believe any newer that 17090 will have it.
Author
Owner

@bitcrazed commented on GitHub (May 3, 2018):

Looks like this is fixed in Win10 Spring 2018 Update. Please let us know if you can repro in 1803 or newer builds.

image

@bitcrazed commented on GitHub (May 3, 2018): Looks like this is fixed in Win10 Spring 2018 Update. Please let us know if you can repro in 1803 or newer builds. ![image](https://user-images.githubusercontent.com/961950/39594489-ab01b90e-4ec1-11e8-8151-4a6bd797b447.png)
Sign in to join this conversation.
No Label Product-Conhost
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#179