Is shutil.get_terminal_size useless?

Marko Rauhamaa marko at
Sat Jan 28 14:30:42 EST 2017

Chris Angelico <rosuav at>:
> Background processes don't have terminal access. Whether it's a daemon
> or something started as "commandname >/dev/null 2>/dev/null </dev/null
> &" from bash, it doesn't have access to a terminal.

A nitpick: a process running in the background or a process with no open
terminal file descriptor still does have a controlling terminal under



More information about the Python-list mailing list