ISATTY(3f)

DESCRIPTION
Determine whether a unit is connected to a terminal device.

STANDARD
GNU extension

CLASS
Function

SYNTAX
RESULT = ISATTY(UNIT)

ARGUMENTS

UNIT Shall be a scalar INTEGER.

RETURN VALUE
Returns .TRUE. if the UNIT is connected to a terminal device, .FALSE. otherwise.

EXAMPLE
          PROGRAM test_isatty
            INTEGER(kind=1) :: unit
            DO unit = 1, 10
              write(*,*) isatty(unit=unit)
            END DO
          END PROGRAM

SEE ALSO
TTYNAM

AUTHOR

This information was taken from the GFortran documentation (https://gcc.gnu.org/onlinedocs/gcc-5.3.0/gfortran/) and converted to a manpage by AstroFloyd (http://astrofloyd.org).