Tests whether the specified file descriptor refers to a terminal device.
#include <unistd.h> int isatty ( int fildes);
(IN) Specifies the file descriptor to test.
Returns
The isatty function tests if the opened file or device referenced by the file descriptor is a character device (namely, the console).