get terminal size python

41

python console width -

import os
rows, columns = os.popen('stty size', 'r').read().split()

Comments

Submit
0 Comments