move isatty() check into InitOutput()