overwritting text #22423

Open
opened 2026-01-31 08:12:51 +00:00 by claunia · 2 comments
Owner

Originally created by @phr34k on GitHub (Oct 19, 2024).

Originally assigned to: @lhecker on GitHub.

Windows Terminal version

1.22.2912.0

Windows build number

10.0.22631.0

Other Software

OpenSSH_for_Windows_9.5p1

Steps to reproduce

You can repoduce this bug by opening an the preview version of Windows Terminal. I usually have default profile for pwsh, and once inside of terminal open up an ssh session to a remote windows computer with sshd configured. With the preview version of Windows Terminal, when you type something inside of the ssh session overwrites the text over the current folder i.e. PS C:\Users\Somebody. When switching back to the non-preview version of Windows Terminal and repeating the same steps everything works normally.

Expected Behavior

I expect the terminal not to overwrite to behave in a way it doesn't overwrite current folder i.e. PS C:\Users\Somebody part. Presently, it makes it really hard to execute any commands, especially because pwsh also doesn't support clearing the console buffer (some error about invalid cursor handle, I think this implies it's not using vt escape sequences or terminal is not translating these commands).

Actual Behavior

When you ssd into an windows machine and for example when you type the clear command, it displays on the screen as clear\Users\Somebody>. It doesn't matter what environment you sshd into cmd, powershell, pwsh all had the same problems of overwriting.

Originally created by @phr34k on GitHub (Oct 19, 2024). Originally assigned to: @lhecker on GitHub. ### Windows Terminal version 1.22.2912.0 ### Windows build number 10.0.22631.0 ### Other Software OpenSSH_for_Windows_9.5p1 ### Steps to reproduce You can repoduce this bug by opening an the preview version of Windows Terminal. I usually have default profile for pwsh, and once inside of terminal open up an ssh session to a remote windows computer with sshd configured. With the preview version of Windows Terminal, when you type something inside of the ssh session overwrites the text over the current folder i.e. `PS C:\Users\Somebody`. When switching back to the non-preview version of Windows Terminal and repeating the same steps everything works normally. ### Expected Behavior I expect the terminal not to overwrite to behave in a way it doesn't overwrite current folder i.e. `PS C:\Users\Somebody` part. Presently, it makes it really hard to execute any commands, especially because pwsh also doesn't support clearing the console buffer (some error about invalid cursor handle, I think this implies it's not using vt escape sequences or terminal is not translating these commands). ### Actual Behavior When you ssd into an windows machine and for example when you type the clear command, it displays on the screen as `clear\Users\Somebody>`. It doesn't matter what environment you sshd into cmd, powershell, pwsh all had the same problems of overwriting.
claunia added the Issue-BugArea-VTProduct-Conpty labels 2026-01-31 08:12:51 +00:00
Author
Owner

@zadjii-msft commented on GitHub (Oct 21, 2024):

@lhecker I'm putting this one on you to look at. Looks like there's something weird with openssh 9.5 and the new conpty

@zadjii-msft commented on GitHub (Oct 21, 2024): @lhecker I'm putting this one on you to look at. Looks like there's something weird with openssh 9.5 and the new conpty
Author
Owner

@carlos-zamora commented on GitHub (Oct 23, 2024):

Related to #18004

@carlos-zamora commented on GitHub (Oct 23, 2024): Related to #18004
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#22423