Win32-OpenSSH
Win32-OpenSSH copied to clipboard
Prompt is printed twice when exiting nano
"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
I get this leaving htop
and also after clear
I get the same behavior when leaving htop
, nano
or using clear
on build v7.9.0.0 when connecting to a Debian system.
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.
can confirm, it happens in both, powershell 5 and powershell 7 core lts.
Can also confirm, after using clear
, htop
and nano
the terminal prompt is displayed twice and characters aren't displaying properly
@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 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.
@bagajjal I can send you a recording...
@vlOd2 - You can check the SSH version number using ssh -V
.
@bagajjal OpenSSH_for_Windows_8.9p1, LibreSSL 3.4.3
@bagajjal
Also when using tmux
, the problem is gone. Weird, maybe because tmux
uses a different shell?
OpenSSH is unusable with this behaviour, the prompt becomes glitchy after using any terminal "fullscreen" app, or just by using clear
This still happens with ssh version OpenSSH_for_Windows_9.2p1, LibreSSL 3.7.2