Buffer clear hot key makes display error #23626

Closed
opened 2026-01-31 08:47:33 +00:00 by claunia · 2 comments
Owner

Originally created by @llyum on GitHub (Sep 20, 2025).

Windows Terminal version

1.23.12371.0

Windows build number

Windows 10 LTSC 21H2 19044.6332

Other Software

No response

Steps to reproduce

First, use some commands output to screen, such as dir or ls.
Second, press buffer clear hot key (I bind it to Ctrl + L).
Then, it looks like the cursor goes to the correct position.

Expected Behavior

No response

Actual Behavior

But, if I type some charactors, they will shows on wrong place that the cursor appears before.

Image

Use cls or clear can make it becomes correct again.

Originally created by @llyum on GitHub (Sep 20, 2025). ### Windows Terminal version 1.23.12371.0 ### Windows build number Windows 10 LTSC 21H2 19044.6332 ### Other Software _No response_ ### Steps to reproduce First, use some commands output to screen, such as `dir` or `ls`. Second, press buffer clear hot key (I bind it to Ctrl + L). Then, it looks like the cursor goes to the correct position. ### Expected Behavior _No response_ ### Actual Behavior But, if I type some charactors, they will shows on wrong place that the cursor appears before. <img width="2350" height="1224" alt="Image" src="https://github.com/user-attachments/assets/c7fd5890-0b9f-4d70-8e01-662c95251184" /> Use `cls` or `clear` can make it becomes correct again.
claunia added the Needs-TriageIssue-BugNeeds-Attention labels 2026-01-31 08:47:34 +00:00
Author
Owner

@lhecker commented on GitHub (Sep 22, 2025):

PowerShell 5 probably doesn't re-fetch the cursor position after you started typing your command.

Can you please try PowerShell 7 if possible?

@lhecker commented on GitHub (Sep 22, 2025): PowerShell 5 probably doesn't re-fetch the cursor position after you started typing your command. Can you please try PowerShell 7 if possible?
Author
Owner

@llyum commented on GitHub (Sep 30, 2025):

开始键入命令后,PowerShell 5 可能不会重新提取光标位置。

如果可能的话,您能试试 PowerShell 7 吗?

You are right, PowerShell 7 is great.

@llyum commented on GitHub (Sep 30, 2025): > 开始键入命令后,PowerShell 5 可能不会重新提取光标位置。 > > 如果可能的话,您能试试 PowerShell 7 吗? You are right, PowerShell 7 is great.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#23626