Added isatty() check to readconsole()