Skip to content

OutputCapabilityDetector

github-actions edited this page Apr 24, 2026 · 1 revision

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


Methods

supportsAnsi

Determines whether the output supports ANSI-capable human interaction.

public supportsAnsi(\Symfony\Component\Console\Output\OutputInterface $output): bool

Parameters:

Parameter Type Description
$output \Symfony\Component\Console\Output\OutputInterface the output to inspect

Return Value:

true when the output is decorated or connected to a TTY


Clone this wiki locally