-
Notifications
You must be signed in to change notification settings - Fork 8.1k
Closed
Labels
Resolution-By DesignThe reported behavior is by design.The reported behavior is by design.
Description
Prerequisites
- Write a descriptive title.
- Make sure you are able to repro it on the latest released version
- Search the existing issues.
- Refer to the FAQ.
- Refer to Differences between Windows PowerShell 5.1 and PowerShell.
Steps to reproduce
I think this is not a good idea to set $PSStyle.OutputRendering = 'Ansi' by default since esc-sequences can spoil the output to the console or file.
dir | out-file file.txt
Expected behavior
$PSStyle.OutputRendering = 'Host'Actual behavior
$PSStyle.OutputRendering = 'Ansi'Error details
No response
Environment data
This is one more example: `$PSVersionTable | Out-String | Set-Clipboard`
�[38;2;80;80;80mName Value�[0m
�[38;2;80;80;80m---- -----�[0m
PSVersion 7.2.1
PSEdition Core
GitCommitId 7.2.1
OS Linux 5.15.7-arch1-1 #1 SMP PREEMPT Wed, 08 Dec 2021 14:33:16 +0000
Platform Unix
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1
WSManStackVersion 3.0Visuals
No response
Metadata
Metadata
Assignees
Labels
Resolution-By DesignThe reported behavior is by design.The reported behavior is by design.