Resizing window too small breaks prompt line #5470

Open
opened 2026-01-31 00:14:13 +00:00 by claunia · 0 comments
Owner

Originally created by @davidhewitt on GitHub (Dec 9, 2019).

Environment

Windows build number: 10.0.19033.0
Windows Terminal version (if applicable): master

Steps to reproduce

  1. Open a new windows terminal.
  2. Fill the screen with output from a command, so that there is at least some history off-screen.
  3. Resize the window horizontally to minimum width
  4. Resize the window back to the original width

Expected behavior

The text and prompt should all reflow so that after resizing back to original size, everything looks like it did before resizing down. After the resize back to full size, typing input should show on the prompt line.

(With one notable exception: the terminal will have scrolled up a bit.)

Actual behavior

The input cursor is no longer on the prompt line, but instead one line below. Typing input shows at the cursor location, but this is now nowhere close to the prompt line.

Screens attached below

Screen before resizing down:

image

Screen after resizing down (note cursor has now broken onto the line after the prompt):

image

Screen after resizing back to original size:

image

Screen after typing some input:

image

Originally created by @davidhewitt on GitHub (Dec 9, 2019). <!--7 This bug tracker is monitored by Windows Terminal development team and other technical folks. **Important: When reporting BSODs or security issues, DO NOT attach memory dumps, logs, or traces to Github issues**. Instead, send dumps/traces to secure@microsoft.com, referencing this GitHub issue. If this is an application crash, please also provide a Feedback Hub submission link so we can find your diagnostic data on the backend. Use the category "Apps > Windows Terminal (Preview)" and choose "Share My Feedback" after submission to get the link. Please use this form and describe your issue, concisely but precisely, with as much detail as possible. --> # Environment ```none Windows build number: 10.0.19033.0 Windows Terminal version (if applicable): master ``` # Steps to reproduce 1. Open a new windows terminal. 2. Fill the screen with output from a command, so that there is at least some history off-screen. 3. Resize the window horizontally to minimum width 4. Resize the window back to the original width # Expected behavior The text and prompt should all reflow so that after resizing back to original size, everything looks like it did before resizing down. After the resize back to full size, typing input should show on the prompt line. (With one notable exception: the terminal will have scrolled up a bit.) # Actual behavior The input cursor is no longer on the prompt line, but instead one line below. Typing input shows at the cursor location, but this is now nowhere close to the prompt line. Screens attached below ## Screen before resizing down: ![image](https://user-images.githubusercontent.com/1939362/70412475-cb5e1a00-1a4c-11ea-8274-b6119dfb8568.png) ## Screen after resizing down (***note cursor has now broken onto the line after the prompt***): ![image](https://user-images.githubusercontent.com/1939362/70412513-ddd85380-1a4c-11ea-9a0d-1e4361e27499.png) ## Screen after resizing back to original size: ![image](https://user-images.githubusercontent.com/1939362/70412581-07917a80-1a4d-11ea-8d41-6f43be63bd2c.png) ## Screen after typing some input: ![image](https://user-images.githubusercontent.com/1939362/70412656-31e33800-1a4d-11ea-8fd8-1946a217706c.png)
claunia added the Resolution-Duplicate label 2026-01-31 00:14:13 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#5470