add code to isatty()