brianbruggeman/vsh

Update is_tty

Closed this issue · 1 comments

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.

This is fixed in 0.7.0