mini\CLI\TTY class

Documentation

Terminal output helper

Provides utilities for structured terminal output including markdown-style tables and formatted text.

Methods (8)

Render data as a markdown-style table

Render data as CSV

Render data as JSON

Render data as a line-based format (one value per line, for single column results)

Format a value for display (with NULL indicator)

Format a value for raw output (empty string for null)

Check if stdout is a TTY (interactive terminal)

Get terminal width

Source

src/CLI/TTY.php:11-226