Answers for "python detect tty"

0

python detect tty

if sys.stdout.isatty():
    # You're running in a real terminal
else:
    # You're being piped, redirected, cron
Posted by: Guest on October-16-2020

Python Answers by Framework

Browse Popular Code Answers by Language