Test if stdout is tty.