In article <314 at wubios.wustl.edu> david at wubios.wustl.edu (David J. Camp) writes: > if (isatty (stdin)) >explain why it does not work? Because you didn't RTFM. Try if ( isatty( fileno( stdin ) ) )