Terminal size detection utilities.
Wraps :io.columns/0 and :io.rows/0 with sensible fallbacks for
non-TTY environments.
Summary
Functions
@spec height() :: pos_integer()
Returns the terminal height in rows.
@spec size() :: {pos_integer(), pos_integer()}
Returns the current terminal dimensions as {columns, rows}.
Falls back to {80, 24} if the terminal size cannot be detected
(e.g., in non-TTY environments, CI, or when stdout is redirected).
@spec width() :: pos_integer()
Returns the terminal width in columns.