Cursor positioning bug when entered text overflows to next line on bottom of the window #13561

Closed
opened 2026-01-31 03:45:56 +00:00 by claunia · 6 comments
Owner

Originally created by @JakaBac on GitHub (Apr 19, 2021).

Terminal app 1.7.1033.0 has an issue redrawing/positioning cursor when the cursor is positioned in the middle of the line and the window is resized horizontally so the gets broken onto the new line while everything scrolls up.

Steps to reproduce:

  1. Open Terminal (PowerShell)
  2. Push Enter enough times to get to the bottom of the window
  3. Enter line long enough so it will get broken when window is resized horizontally
  4. Move cursor backwards and enter a different character to mark your position
  5. Resize the window horizontally.
  6. When the line gets broken and text scrolls up observe that the cursor is not where it should be

Old console doesn't have this issue.

cmd.exe in Terminal app has a similar issue

Originally created by @JakaBac on GitHub (Apr 19, 2021). Terminal app 1.7.1033.0 has an issue redrawing/positioning cursor when the cursor is positioned in the middle of the line and the window is resized horizontally so the gets broken onto the new line while everything scrolls up. Steps to reproduce: 1. Open Terminal (PowerShell) 2. Push Enter enough times to get to the bottom of the window 3. Enter line long enough so it will get broken when window is resized horizontally 4. Move cursor backwards and enter a different character to mark your position 5. Resize the window horizontally. 6. When the line gets broken and text scrolls up observe that the cursor is not where it should be Old console doesn't have this issue. cmd.exe in Terminal app has a similar issue
claunia added the Resolution-Duplicate label 2026-01-31 03:45:56 +00:00
Author
Owner

@DHowett commented on GitHub (Apr 19, 2021):

This doesn't seem to be different from #6546.

@DHowett commented on GitHub (Apr 19, 2021): This doesn't seem to be different from #6546.
Author
Owner

@JakaBac commented on GitHub (Apr 19, 2021):

Probably this is the same issue. But I can always reliably reproduce it.

@JakaBac commented on GitHub (Apr 19, 2021): Probably this is the same issue. But I can always reliably reproduce it.
Author
Owner

@DHowett commented on GitHub (Apr 19, 2021):

This is really helpful -- I bet that we could use it to write a repro case. Thanks! 😄

@DHowett commented on GitHub (Apr 19, 2021): This is really helpful -- I bet that we could use it to write a repro case. Thanks! :smile:
Author
Owner

@JakaBac commented on GitHub (Apr 19, 2021):

It is easiest to reproduce with PowerShell, since there the cursor really jumps someplace unexpected. With cmd.exe and WSL (Ubuntu) it takes little bit more resizing back and forth. The cursor stays where it should, but the text buffer gets messed up

@JakaBac commented on GitHub (Apr 19, 2021): It is easiest to reproduce with PowerShell, since there the cursor really jumps someplace unexpected. With cmd.exe and WSL (Ubuntu) it takes little bit more resizing back and forth. The cursor stays where it should, but the text buffer gets messed up
Author
Owner

@zadjii-msft commented on GitHub (Apr 20, 2021):

Thanks for the consistent repro steps! I'll move thee discussion over to #6546

/dup #6546

@zadjii-msft commented on GitHub (Apr 20, 2021): Thanks for the consistent repro steps! I'll move thee discussion over to #6546 /dup #6546
Author
Owner

@ghost commented on GitHub (Apr 20, 2021):

Hi! We've identified this issue as a duplicate of another one that already exists on this Issue Tracker. This specific instance is being closed in favor of tracking the concern over on the referenced thread. Thanks for your report!

@ghost commented on GitHub (Apr 20, 2021): Hi! We've identified this issue as a duplicate of another one that already exists on this Issue Tracker. This specific instance is being closed in favor of tracking the concern over on the referenced thread. Thanks for your report!
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#13561