Existing text overwritten when writing text during ssh session started from WSL Ubuntu(18.04 LTS and 20.04 LTS) #12880

Closed
opened 2026-01-31 03:27:48 +00:00 by claunia · 2 comments
Owner

Originally created by @andrewnryan on GitHub (Mar 5, 2021).

The issues I am experiencing seem to be very similar to:

https://github.com/microsoft/WSL/issues/2740
https://github.com/microsoft/WSL/issues/1307

Which presents as :

  • using WSL Ubuntu distros (18 and 20) and launching the terminal
  • ssh'ing into a remote server
  • using bash (have not tried other shells)
  • entering text in terminal
  • using the arrows keys to move back into already written text
  • attempting to insert new text overwrites existing text
  • hitting cntrl-e to bring the cursor to the end of line seems to cause all the text to rewrite and display correctly (i.e. the terminal seems to rewrite and it has the correct inserted text in the correct location)

As mentioned, this behavior is reproducible in Ubuntu 18.04 and Ubuntu 20.04 (both installed via Microsoft store).

Environment

Platform ServicePack Version      VersionString
-------- ----------- -------      -------------
 Win32NT             10.0.19042.0 Microsoft Windows NT 10.0.19042.0

Steps to reproduce

steps to reproduce are documented above

Expected behavior

text would insert at the appropriate cursor location

Actual behavior

text inserted after moving the cursor back over existing text is overwriting rather than inserting.

Originally created by @andrewnryan on GitHub (Mar 5, 2021). The issues I am experiencing seem to be very similar to: https://github.com/microsoft/WSL/issues/2740 https://github.com/microsoft/WSL/issues/1307 Which presents as : - using WSL Ubuntu distros (18 and 20) and launching the terminal - ssh'ing into a remote server - using bash (have not tried other shells) - entering text in terminal - using the arrows keys to move back into already written text - attempting to insert new text overwrites existing text - hitting cntrl-e to bring the cursor to the end of line seems to cause all the text to rewrite and display correctly (i.e. the terminal seems to rewrite and it has the correct inserted text in the correct location) As mentioned, this behavior is reproducible in Ubuntu 18.04 and Ubuntu 20.04 (both installed via Microsoft store). # Environment ```none Platform ServicePack Version VersionString -------- ----------- ------- ------------- Win32NT 10.0.19042.0 Microsoft Windows NT 10.0.19042.0 ``` # Steps to reproduce steps to reproduce are documented above # Expected behavior text would insert at the appropriate cursor location # Actual behavior text inserted after moving the cursor back over existing text is overwriting rather than inserting.
claunia added the Needs-TriageNeeds-Tag-Fix labels 2026-01-31 03:27:49 +00:00
Author
Owner

@andrewnryan commented on GitHub (Mar 5, 2021):

this might be a duplicate of: https://github.com/microsoft/terminal/issues/6652

@andrewnryan commented on GitHub (Mar 5, 2021): this *might* be a duplicate of: https://github.com/microsoft/terminal/issues/6652
Author
Owner

@andrewnryan commented on GitHub (Mar 5, 2021):

this appears to be a duplicate of
https://github.com/microsoft/terminal/issues/125
and
https://github.com/microsoft/terminal/issues/1947

in which the issue seems to be with support for IRM. going to close out this issue

@andrewnryan commented on GitHub (Mar 5, 2021): this appears to be a duplicate of https://github.com/microsoft/terminal/issues/125 and https://github.com/microsoft/terminal/issues/1947 in which the issue seems to be with support for IRM. going to close out this issue
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#12880