OutputCapabilityDetectorInterface

Interface

Detects console output capabilities without requiring PTY-backed processes.

Table of Contents

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