include "NSLog.incl" BeginCCode if (isatty(fileno(stdin))) NSLog( @"stdin is connected to a terminal" ); else NSLog( @"stdin is NOT connected to a terminal" ); EndC HandleEvents