c_isatty Interface

interface
private function c_isatty(fd) result(tty) bind(C, name='isatty'))

Arguments

Type IntentOptional Attributes Name
integer(kind=c_int), value :: fd

File descriptor to test.

Return Value integer(kind=c_int)

Description

Test file descriptor for a terminal, via POSIX isatty.

Nonzero for a terminal.