isatty / tty? support
Merge pull request #1 from mikesimons/feature/isatty

isatty / tty? support