Doc supported TERM env var values · Issue #7326 · MicrosoftDocs/PowerShell-Docs · GitHub
Skip to content

Doc supported TERM env var values #7326

Closed

Description

@SteveL-MSFT

Summary of the new document or enhancement

Description of what changed

Respect TERM env var where:

dumb set SupportsVirtualTerminal = false
xterm-mono set $PSStyle.OutputRendering = PlainText
xtermm set $PSStyle.OutputRendering = PlainText

if $env:NO_COLOR exists, set $PSStyle.OutputRendering = PlainText

Note that if you try this interactively, PSReadLine doesn't respect these two values so on screen output will be hard to read as it still emits colors and cursor movements. Created PowerShell/PSReadLine#2277 to track this.

This works on all platforms including Windows.

Activity

  1. yaxye8123 commented on Mar 19, 2021

    @yaxye8123

    That is a good idea

  2. added a commit that references this issue on Apr 16, 2021
    1cda1ec
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

area-experimentalArea - experimental feature support

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions