Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Inserting overwrites existing text in C shell on FreeBSD #5151

Closed
Lombra opened this issue Mar 27, 2020 · 4 comments
Closed

Inserting overwrites existing text in C shell on FreeBSD #5151

Lombra opened this issue Mar 27, 2020 · 4 comments
Labels
Area-VT Virtual Terminal sequence support Resolution-Duplicate There's another issue on the tracker that's pretty much the same thing.

Comments

@Lombra
Copy link

Lombra commented Mar 27, 2020

Environment

Windows build number: Microsoft Windows [Version 10.0.18363.720]

Steps to reproduce

  • SSH into a FreeBSD machine that uses C shell.
  • Start typing a command in the prompt.
  • Move the cursor back to any point before the end of the pending prompt command.
  • Start typing.

Expected behavior

Text is inserted at the cursor position.

Actual behavior

Text overwrites existing text as it is written. It only appears overwritten, however, as pressing enter reveals that the command is executed as though the text was inserted correctly without overwriting. Furthermore, moving the cursor back to the end of the text reveals the "real" text as the cursor moves over it.

Both the console and WSL exhibits the same behavior. PuTTY does not.

The issue does not occur when using Bash instead of C shell on the target machine.

Here are some other people having the same issue on FreeBSD machines.
microsoft/WSL#1756 (comment)

@ghost ghost added Needs-Triage It's a new issue that the core contributor team needs to triage at the next triage meeting Needs-Tag-Fix Doesn't match tag requirements labels Mar 27, 2020
@DHowett-MSFT
Copy link
Contributor

If you have access to the script utility, can you capture a script? We can't troubleshoot this without knowing exactly what VT sequences the shell is emitting. 😄 Thanks!

@DHowett-MSFT DHowett-MSFT added Area-VT Virtual Terminal sequence support Needs-Author-Feedback The original author of the issue/PR needs to come back and respond to something labels Mar 27, 2020
@Lombra
Copy link
Author

Lombra commented Mar 27, 2020

Here I typed echo "hello world", and then went back to insert new before the w.

Script started on Sat Mar 28 00:03:53 2020
root@LP50:~ # echo "hello world"^H^H^H^H^H^H^[[4hn^[[4l^[[4he^[[4lw^[[4hw^[[4l^H^[[4h ^[[4l^M
hello new world
root@LP50:~ # ^D^H^Hexit

Script done on Sat Mar 28 00:04:11 2020

@ghost ghost added Needs-Attention The core contributors need to come back around and look at this ASAP. and removed Needs-Author-Feedback The original author of the issue/PR needs to come back and respond to something labels Mar 27, 2020
@DHowett-MSFT
Copy link
Contributor

/dup #1947 😄 thanks!

@ghost
Copy link

ghost commented Mar 27, 2020

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 ghost closed this as completed Mar 27, 2020
@ghost ghost added Resolution-Duplicate There's another issue on the tracker that's pretty much the same thing. and removed Needs-Triage It's a new issue that the core contributor team needs to triage at the next triage meeting Needs-Tag-Fix Doesn't match tag requirements Needs-Attention The core contributors need to come back around and look at this ASAP. labels Mar 27, 2020
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area-VT Virtual Terminal sequence support Resolution-Duplicate There's another issue on the tracker that's pretty much the same thing.
Projects
None yet
Development

No branches or pull requests

2 participants