Determine if a file descriptor is an interactive terminal
$fd
Determines if the file descriptor fd refers to a valid terminal type device.
fd
The file descriptor.
Returns TRUE if fd is an open descriptor connected to a terminal and FALSE otherwise.
TRUE
FALSE