Win32-OpenSSH icon indicating copy to clipboard operation
Win32-OpenSSH copied to clipboard

Prompt is printed twice when exiting nano

Open anthonyvdotbe opened this issue 5 years ago • 13 comments

"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

anthonyvdotbe avatar May 02 '19 15:05 anthonyvdotbe

I get this leaving htop and also after clear

cmd430 avatar May 12 '19 05:05 cmd430

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 avatar Jun 23 '19 18:06 tblut

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.

tblut avatar Jun 28 '19 19:06 tblut

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

gadiel avatar Mar 28 '20 23:03 gadiel

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

vlOd2 avatar Apr 09 '22 14:04 vlOd2

@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.

bagajjal avatar Apr 11 '22 18:04 bagajjal

@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 avatar Apr 11 '22 19:04 vlOd2

@bagajjal I can send you a recording...

vlOd2 avatar Apr 11 '22 19:04 vlOd2

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

bagajjal avatar Apr 11 '22 19:04 bagajjal

@bagajjal OpenSSH_for_Windows_8.9p1, LibreSSL 3.4.3

vlOd2 avatar Apr 12 '22 07:04 vlOd2

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

vlOd2 avatar Apr 14 '22 19:04 vlOd2

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

vlOd2 avatar Apr 14 '22 19:04 vlOd2

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

AterialDawn avatar May 18 '23 11:05 AterialDawn