PSX_ISATTY

Determine if a file is a terminal

Description:

Determine if FILDSC is a valid file descriptor associated with a terminal. ISTTY is set to TRUE if the file descriptor is associated with a terminal and FALSE otherwise.

Invocation

CALL PSX_ISATTY( FILDSC, ISTTY, STATUS )

Arguments

FILDSC = INTEGER (Given)
The file descriptor, which is just an integer.
ISTTY = LOGICAL (Returned)
Is the file descriptor associated with a terminal?
STATUS = INTEGER (Given)
The global status.

Examples:

CALL PSX_ISATTY( 0, ISTTY, STATUS )
Is the standard input channel a terminal?

Notes:

References

Copyright

Copyright (C) 1991 Science & Engineering Research Council