Check for the isatty function.