HN
Hacker News
Top
New
Best
Ask
Show
Jobs
Comment by take-five | Hacker News Reader
Parent
Full thread
take-five
·
Something like (in Python)
os.isatty(sys.stdout.fileno())
View on HN
Zambyte
·
That doesn't say where it's piped though. It could be redirected to a file, or piped to something harmless like jq.
Reply on news.ycombinator.com