PHP.nl

posix_isatty

posix_isatty

Determine if a file descriptor is an interactive terminal

bool **posix_isatty**  $file_descriptor
Determines if the file descriptor  refers to a valid
terminal type device.

file_descriptor

Returns true if is an open descriptor connected to a terminal and false otherwise. file_descriptor

posix_ttyname``stream_isatty