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:
-
On Unix the standard file descriptors are 0,1,2, for stdin, stdout and stderr, respectively.
References
Copyright
Copyright (C) 1991 Science & Engineering
Research Council
Copyright © 2000 Council for the Central Laboratory of the Research Councils, 2006 Particle Physics
and Astronomy Research Council