Also support STDOUT.isatty is false