# `Alaja.Terminal`
[🔗](https://github.com/Lorenzo-SF/alaja/blob/2.1.0/lib/alaja/terminal.ex#L1)

Terminal size detection utilities.

Wraps `:io.columns/0` and `:io.rows/0` with sensible fallbacks for
non-TTY environments.

# `height`

```elixir
@spec height() :: pos_integer()
```

Returns the terminal height in rows.

# `size`

```elixir
@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).

# `width`

```elixir
@spec width() :: pos_integer()
```

Returns the terminal width in columns.

---

*Consult [api-reference.md](api-reference.md) for complete listing*
