Skip to content

Doc supported TERM env var values #7326

@SteveL-MSFT

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.

Metadata

Metadata

Assignees

Labels

area-experimentalArea - experimental feature support

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions