← All docs

stream_isatty()

Checks if a stream is a TTY.

stream_isatty()

function stream_isatty(resource $stream): bool

Checks if a stream is a TTY.

Parameters:

  • $stream (resource)

Returns: bool

Availability

No examples yet — check examples/ and showcases/ for usage patterns.

Internals

For how stream_isatty is implemented in the compiler, see the internals page.