Update is_tty
Closed this issue · 1 comments
brianbruggeman commented
We use a subprocess to check if environment is a tty:
def is_tty():
cp = subprocess.run(['tty', '-s'])
return cp.returncode == 0
We can simplify using sys.stdout.isatty
.
brianbruggeman commented
This is fixed in 0.7.0