Anonymous user
Check input device is a terminal: Difference between revisions
m
→{{header|Python}}
Line 185:
print("Input doesn't come from tty.")</lang>
$ python istty.
Input comes from tty.
$ true | python istty.
Input doesn't come from tty.
|