Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
take-five
· 2y ago · 0 comments
Something like (in Python)
os.isatty(sys.stdout.fileno())
Comments
[–]
Zambyte
2y ago
That doesn't say where it's piped though. It could be redirected to a file, or piped to something harmless like jq.