Feb-01-2019, 04:48 AM
the "test" command on Unix/Linux/Posix systems does have a means to test if a specified file descriptor is is open to a terminal or not. it does it like:
test -t 1
i am looking for the pythonic way to do this. in general, i will need to apply this to stdin and less often to stdout and maybe sometimes stderr or other things.
Tradition is peer pressure from dead people
What do you call someone who speaks three languages? Trilingual. Two languages? Bilingual. One language? American.
What do you call someone who speaks three languages? Trilingual. Two languages? Bilingual. One language? American.