isatty / tty? support