-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Closed
Labels
area-experimentalArea - experimental feature supportArea - experimental feature support
Milestone
Description
Summary of the new document or enhancement
- List of articles that need to be updated:
- New articles that need to be created:
- Link(s) to related code PR(s) in the PowerShell/PowerShell repo: Enable use of TERM and NO_COLOR env var plaintext PowerShell/PowerShell#14969
- Link(s) to related issue(s) in the PowerShell/PowerShell repo: Containers: PSSTYLE is a royal pain. Can we use environment variables for configuration? PowerShell/PowerShell#14964
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.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
area-experimentalArea - experimental feature supportArea - experimental feature support