Skip to content

Respect SupportsVirtualTerminal #2277

@SteveL-MSFT

Description

@SteveL-MSFT

Environment

PS version: 7.2.0-preview.3
PSReadline version: 2.2.0-beta2
os: Darwin MININT-E57SBHC.europe.corp.microsoft.com 20.3.0 Darwin Kernel Version 20.3.0: Thu Jan 21 00:07:06 PST 2021; root:xnu-7195.81.3~1/RELEASE_X86_64 x86_64
PS file version: 7.2.0.0
HostName: ConsoleHost
BufferWidth: 165
BufferHeight: 42

On systems where $Host.UI.SupportsVirtualTerminal is false (and not Windows), PSReadLine needs to disable some feature that rely on VT as the console output makes it unreadable.

Also, output should go through the Host and not using Console directly.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions