fails(does not work on headless CI server):IO#isatty returns true if this stream is a terminal device (TTY)
