3 ms·
Something like (in Python) os.isatty(sys.stdout.fileno())
by take-five 2y ago
Something like (in Python)
os.isatty(sys.stdout.fileno())
- Zambyte 2y agoThat doesn't say where it's piped though. It could be redirected to a file, or piped to something harmless like jq.