next up previous 216
Next: PSX_LOCALTIME - Convert the value returned by PSX_TIME to individual local time values
Up: Routine Descriptions
Previous: PSX_GMTIME - Convert the value returned by PSX_TIME to individual GMT values


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


next up previous 216
Next: PSX_LOCALTIME - Convert the value returned by PSX_TIME to individual local time values
Up: Routine Descriptions
Previous: PSX_GMTIME - Convert the value returned by PSX_TIME to individual GMT values

PSX POSIX interface routines
Starlink User Note 121
P M Allan
A J Chipperfield
10 April 2003
E-mail:ussc@star.rl.ac.uk

Copyright © 2000 Council for the Central Laboratory of the Research Councils