Skip to content

When copying output to the clipboard on macOS, output is padded to 80 columns wide with whitespace #5532

@kai-h

Description

@kai-h

Steps to reproduce

Install PowerShell on macOS
Open a new PowerShell instance
Do something that causes text to be output to the terminal
Copy and paste this text into somewhere else, e.g. a text editor or an email.
There is extraneous whitespace at the end of every line to pad it out to the width of my Terminal window, which is by default 80 columns.

Expected behavior

It is expected that the text output in the Terminal will not have extra whitespace at the end of each and every line.

Actual behavior

Output is padded to the width of the Terminal window.
e.g. if you look at the output for $PSVersionTable below, copy and paste it into a text editor and you will notice that every line is 150 characters long, padded out with the space character. My Terminal window was 150 characters wide so that it could fit in the output for the OS line without truncating it.

Environment data

PS /Users/kai> $PSVersionTable                                                                                                                        

Name                           Value                                                                                                                 
----                           -----                                                                                                                 
PSVersion                      6.0.0-rc                                                                                                              
PSEdition                      Core                                                                                                                  
GitCommitId                    v6.0.0-rc                                                                                                             
OS                             Darwin 16.7.0 Darwin Kernel Version 16.7.0: Thu Jun 15 17:36:27 PDT 2017; root:xnu-3789.70.16~2/RELEASE_X86_64        
Platform                       Unix                                                                                                                  
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0...}                                                                                               
PSRemotingProtocolVersion      2.3                                                                                                                   
SerializationVersion           1.1.0.1                                                                                                               
WSManStackVersion              3.0                                                                                                                   

Metadata

Metadata

Assignees

Labels

Issue-Discussionthe issue may not have a clear classification yet. The issue may generate an RFC or may be reclassifOS-LinuxOS-macOSResolution-FixedThe issue is fixed.WG-Interactive-Consolethe console experience

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions