PowerShell / PowerShell/Win32-OpenSSH

Copying output from tmux omits newlines and pads with whitespaces

Open
#1,579 7 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
No language data
Stars
8.3k
Forks
819
PR merge metrics
No merged PRs in 30d

Description

"OpenSSH for Windows" version
ssh.exe from https://github.com/PowerShell/Win32-OpenSSH/releases/tag/v8.1.0.0p1-Beta

Server OperatingSystem
Ubuntu 1804 LTS

Client OperatingSystem
W10 N 1909

What is failing
If you copy a tmux session's output, all newlines are removed and padding whitespaces are added.

Copied text in putty:

benni@majorpurpose:~$ whoami
benni
benni@majorpurpose:~$

Copied text in openssh:

benni@majorpurpose:~$ whoami                                                                                                                                                                                                                                                   benni                                                                                                                                                                                                                                                                          benni@majorpurpose:~$

As you can see, all newlines have been stripped, and there are a lot of padding whitespaces.

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 copy operation from a tmux session using ssh.exe on Windows 10 against the reported Ubuntu 18.04 setup, and compare it with the PuTTY output shown in the issue. No source file or test is named; done means copied output preserves line breaks without the added padding spaces.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.