PowerShell / PowerShell/Win32-OpenSSH

Prompt is printed twice when exiting nano

Open
#1,376 14 comments 3 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Area-Terminal Issue-Bug
Dominant language
No language data
Stars
8.3k
Forks
819
PR merge metrics
No merged PRs in 30d

Description

"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

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the session with ssh pi@foo, enter nano, and exit with Ctrl+X on the reported Windows and Raspbian versions. Start by tracing the terminal window-change behavior shown by the -vvv output. Done means the remote prompt is printed once after nano exits, with no duplicate prompt.

Written by the indexing model from the issue text.

Assessment

Tech stack
c
Domain
cli, networking, operating-systems
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.