Cursor glitch while browsing bash history when last command doesn't end with new line #15580

Closed
opened 2026-01-31 04:42:39 +00:00 by claunia · 3 comments
Owner

Originally created by @nmoreaud on GitHub (Oct 19, 2021).

Windows Terminal version (or Windows build number)

1.10.2714.0

Other Software

VS Code Version: 1.61.1
OS Version: Windows 10 + WSL Ubuntu 20.04

Steps to reproduce

Steps to Reproduce:

  1. Open a bash terminal
  2. Type a command larger than approximately 3/4 of the command prompt that doesn't finish with a new line
  3. Go up in history
  4. Press 'Start of line' key

https://user-images.githubusercontent.com/2413781/137861612-0c1bfcf9-1c36-41a4-b01d-e1c54b9147b5.mp4
https://user-images.githubusercontent.com/2413781/137862023-c4620bbc-fa38-4f06-b85b-f1b544911a19.mp4

Expected Behavior

No response

Actual Behavior

Cursor goes at the left of the command prompt.
It seems to depend on command prompt size

Originally created by @nmoreaud on GitHub (Oct 19, 2021). ### Windows Terminal version (or Windows build number) 1.10.2714.0 ### Other Software VS Code Version: 1.61.1 OS Version: Windows 10 + WSL Ubuntu 20.04 ### Steps to reproduce Steps to Reproduce: 1. Open a bash terminal 2. Type a command larger than approximately 3/4 of the command prompt that doesn't finish with a new line 3. Go up in history 4. Press 'Start of line' key https://user-images.githubusercontent.com/2413781/137861612-0c1bfcf9-1c36-41a4-b01d-e1c54b9147b5.mp4 https://user-images.githubusercontent.com/2413781/137862023-c4620bbc-fa38-4f06-b85b-f1b544911a19.mp4 ### Expected Behavior _No response_ ### Actual Behavior Cursor goes at the left of the command prompt. It seems to depend on command prompt size
claunia added the Needs-TriageNeeds-Tag-FixNeeds-Attention labels 2026-01-31 04:42:39 +00:00
Author
Owner

@zadjii-msft commented on GitHub (Oct 19, 2021):

Does this repro with a vintage console window as well? (i.e. conhost.exe)?

@zadjii-msft commented on GitHub (Oct 19, 2021): Does this repro with a vintage console window as well? (i.e. `conhost.exe`)?
Author
Owner

@nmoreaud commented on GitHub (Oct 19, 2021):

If I run WSL from a vintage console, I reproduce it too.

@nmoreaud commented on GitHub (Oct 19, 2021): If I run WSL from a vintage console, I reproduce it too.
Author
Owner

@nmoreaud commented on GitHub (Oct 19, 2021):

This also happens in a desktop ubuntu VM, it seems to be a bug with the default command prompt environment variable (PS1). https://unix.stackexchange.com/questions/105958/terminal-prompt-not-wrapping-correctly

@nmoreaud commented on GitHub (Oct 19, 2021): This also happens in a desktop ubuntu VM, it seems to be a bug with the default command prompt environment variable (PS1). https://unix.stackexchange.com/questions/105958/terminal-prompt-not-wrapping-correctly
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#15580