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

Prompt is printed twice when exiting nano #1376

Open
anthonyvdotbe opened this issue May 2, 2019 · 13 comments
Open

Prompt is printed twice when exiting nano #1376

anthonyvdotbe opened this issue May 2, 2019 · 13 comments

Comments

@anthonyvdotbe
Copy link

"OpenSSH for Windows" version
7.7.2.2

Server OperatingSystem
Raspbian GNU/Linux 9 (stretch)

Client OperatingSystem
Windows 10 Pro (version 1809)

What is failing
To reproduce:
. run ssh pi@foo
. enter "nano"
. press Ctrl+X to exit nano

At this point, the prompt is printed twice.
I have also tried with $env:TERM = 'xterm', but this didn't help.

Expected output

pi@foo:~ $ nano
pi@foo:~ $ 

Actual output

pi@foo:~ $ nano
pi@foo:~ $ pi@foo:~ $

Not sure if this helpful, but when connecting with -vvv, the actual output is as follows:

pi@sardien:~ $ nano
pi@sardien:~ $ debug2: client_check_window_change: changed
debug2: channel 0: request window-change confirm 0
debug3: send packet: type 98
pi@sardien:~ $ debug2: client_check_window_change: changed
debug2: channel 0: request window-change confirm 0
debug3: send packet: type 98

@cmd430
Copy link

cmd430 commented May 12, 2019

I get this leaving htop and also after clear

@tblut
Copy link

tblut commented Jun 23, 2019

I get the same behavior when leaving htop, nano or using clear on build v7.9.0.0 when connecting to a Debian system.

@tblut
Copy link

tblut commented Jun 28, 2019

I've tested this with version 8.0 and is still has the same issues. Additionally, this bug also appears when exiting or detaching a screen session.

@gadiel
Copy link

gadiel commented Mar 28, 2020

can confirm, it happens in both, powershell 5 and powershell 7 core lts.

@vlOd2
Copy link

vlOd2 commented Apr 9, 2022

Can also confirm, after using clear, htop and nano the terminal prompt is displayed twice and characters aren't displaying properly

@bagajjal
Copy link
Collaborator

@vlOd2 - This issue is fixed as part of PR shipped into V8.6. Can you please test your scenario with Win32-OpenSSH V8.9 / V8.6.

@vlOd2
Copy link

vlOd2 commented Apr 11, 2022

@bagajjal
The issue still persists. I do not know how to check the version, but I uninstalled the one from the settings and installed the latest v8.9 MSI file. I also changed my path just to be safe. The problem still persists.

@vlOd2
Copy link

vlOd2 commented Apr 11, 2022

@bagajjal
I can send you a recording...

@bagajjal
Copy link
Collaborator

@vlOd2 - You can check the SSH version number using ssh -V.

@vlOd2
Copy link

vlOd2 commented Apr 12, 2022

@bagajjal
OpenSSH_for_Windows_8.9p1, LibreSSL 3.4.3

@vlOd2
Copy link

vlOd2 commented Apr 14, 2022

@bagajjal
Also when using tmux, the problem is gone. Weird, maybe because tmux uses a different shell?

@vlOd2
Copy link

vlOd2 commented Apr 14, 2022

OpenSSH is unusable with this behaviour, the prompt becomes glitchy after using any terminal "fullscreen" app, or just by using clear

@AterialDawn
Copy link

This still happens with ssh version OpenSSH_for_Windows_9.2p1, LibreSSL 3.7.2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

8 participants