1 If the file descriptor is associated with a
terminal.
0 If the file descriptor is not associated with
a terminal.
-1 Indicates an error (for example, if the file
descriptor is not associated with an open
file).