Check isatty(fileno(stdout)) once time
Convert encoding of argv