Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

7.2.1: $PSStyle.OutputRendering #16618

Copy link
Copy link
@237dmitry

Description

@237dmitry
Issue body actions

Prerequisites

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.0

Visuals

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.