OutputCapabilityDetector

Class
Final: Yes

Detects ANSI-friendly output by decoration state or TTY-backed streams.

Table of Contents

Interfaces

OutputCapabilityDetectorInterface

Detects console output capabilities without requiring PTY-backed processes.

Methods

supportsAnsi()

Determines whether the output supports ANSI-capable human interaction.

 : bool
Methods

supportsAnsi()

Public

Determines whether the output supports ANSI-capable human interaction.

public supportsAnsi(OutputInterface  $output) : bool
Parameters
$output : OutputInterface

Description

the output to inspect

Return values
bool

Description

true when the output is decorated or connected to a TTY