get the terminal's size
I want to know the number of columns of the terminal where python2 writes
In a terminal, I type
$ echo $COLUMNS
But in Python, os.getenv("COLUMNS") gets nothing.
It gets nothing as well if I try to read the output of "echo $COLUMNS"
from a subprocess.
I feel that I'm missing something but what ?
Looking on the internet for a hint, I see that python3 has an
Please, is there something similar for python2 ?