PHP.nl

posix_ttyname

posix_ttyname

Determine terminal device name

 **posix_ttyname**  $file_descriptor

Returns a for the absolute path to the current terminal device that is open on the file descriptor . string``file_descriptor

On success, returns a of the absolute path of the . On failure, returns false string``file_descriptor

On invalid integer values an is raised. file_descriptor``E_WARNING

posix_isatty``stream_isatty