Resizing the window should keep the prompt at the bottom of the window #21500

Open
opened 2026-01-31 07:46:25 +00:00 by claunia · 3 comments
Owner

Originally created by @warpdesign on GitHub (Apr 9, 2024).

Windows Terminal version

1.19.105.73.0

Windows build number

10.0.19045.4239

Other Software

No response

Steps to reproduce

  • open a Windows Terminal
  • fill the buffer so that the prompt appears at the bottom of the window
  • resize the window so that it's smaller than before
  • enlarge the window

Expected Behavior

The prompt should stay at the bottom of the window.

Actual Behavior

The prompt has moved several lines up (scroll position appears to be correct: at the bottom of the window, but the text/prompt's position is not correct). Also notice one of the previous prompt that incorrectly appears on the top right, but I guess it should go in another issue.

https://github.com/microsoft/terminal/assets/199648/680ee2d6-eefe-46e1-87b8-3616571cfe1a

The expected behavior is the one I saw on popular terminal apps on macOS and Linux.

For example:

iTerm on mac

https://github.com/microsoft/terminal/assets/199648/6dcf7daa-b07d-43b7-b77d-9905a3ca6b3d

GNOME Terminal on Debian

https://github.com/microsoft/terminal/assets/199648/06862b6e-70fb-4337-a8da-aad169115199

Originally created by @warpdesign on GitHub (Apr 9, 2024). ### Windows Terminal version 1.19.105.73.0 ### Windows build number 10.0.19045.4239 ### Other Software _No response_ ### Steps to reproduce - open a Windows Terminal - fill the buffer so that the prompt appears at the bottom of the window - resize the window so that it's smaller than before - enlarge the window ### Expected Behavior The prompt should stay at the bottom of the window. ### Actual Behavior The prompt has moved several lines up (scroll position appears to be correct: at the bottom of the window, but the text/prompt's position is not correct). Also notice one of the previous prompt that incorrectly appears on the top right, but I guess it should go in another issue. https://github.com/microsoft/terminal/assets/199648/680ee2d6-eefe-46e1-87b8-3616571cfe1a The expected behavior is the one I saw on popular terminal apps on macOS and Linux. For example: iTerm on mac https://github.com/microsoft/terminal/assets/199648/6dcf7daa-b07d-43b7-b77d-9905a3ca6b3d GNOME Terminal on Debian https://github.com/microsoft/terminal/assets/199648/06862b6e-70fb-4337-a8da-aad169115199
claunia added the Issue-FeatureArea-OutputProduct-Conpty labels 2026-01-31 07:46:25 +00:00
Author
Owner

@github-actions[bot] commented on GitHub (Apr 9, 2024):

Hi I'm an AI powered bot that finds similar issues based off the issue title.

Please view the issues below to see if they solve your problem, and if the issue describes your problem please consider closing this one and thumbs upping the other issue to help us prioritize it. Thank you!

Open similar issues:

Closed similar issues:

Note: You can give me feedback by thumbs upping or thumbs downing this comment.

@github-actions[bot] commented on GitHub (Apr 9, 2024): Hi I'm an AI powered bot that finds similar issues based off the issue title. Please view the issues below to see if they solve your problem, and if the issue describes your problem please consider closing this one and thumbs upping the other issue to help us prioritize it. Thank you! ### Open similar issues: - [one line moved up when maximizing Terminal (#13961)](https://github.com/microsoft/terminal/issues/13961), similarity score: 0.80 ### Closed similar issues: - [Cursor position is lost when resizing the window if not on the bottom line (#10848)](https://github.com/microsoft/terminal/issues/10848), similarity score: 0.77 - [Resizing window too small breaks prompt line (#3889)](https://github.com/microsoft/terminal/issues/3889), similarity score: 0.77 - [Bug Report - Prompt is located nowhere (#1797)](https://github.com/microsoft/terminal/issues/1797), similarity score: 0.76 - [Corrupted terminal output after window resized (#15042)](https://github.com/microsoft/terminal/issues/15042), similarity score: 0.75 > Note: You can give me feedback by thumbs upping or thumbs downing this comment.
Author
Owner

@carlos-zamora commented on GitHub (Apr 10, 2024):

Thanks for filing. We do this for consistency with the Windows Console. We have an idea of how to approach this, but it's actually a pretty big architectural change. This should definitely be linked up to #15065 though, since ConPTY is involved

@carlos-zamora commented on GitHub (Apr 10, 2024): Thanks for filing. We do this for consistency with the Windows Console. We have an idea of how to approach this, but it's actually a pretty big architectural change. This should definitely be linked up to #15065 though, since ConPTY is involved
Author
Owner

@leep-frog commented on GitHub (Apr 5, 2025):

Hello, any update on this issue?

This is a particularly annoying issue when using with VS Code (which resizes the terminal on open/close terminal view events).

@leep-frog commented on GitHub (Apr 5, 2025): Hello, any update on this issue? > This is a particularly annoying issue when using with VS Code (which resizes the terminal on open/close terminal view events).
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#21500