Of course, that should be !isatty().