4 ms·
Fortunately, if you pipe or redirect output, the filehandle won't be a terminal, so just check it with `isatty`[1]. [1]: https://linux.die.net/man/3/isatty htt
by ben509 8y ago
Fortunately, if you pipe or redirect output, the filehandle won't be a terminal, so just check it with `isatty`[1].
[1]: https://linux.die.net/man/3/isatty https://linux.die.net/man/3/isatty