[issue13609] Add "os.get_terminal_size()" function

anatoly techtonik report at bugs.python.org
Tue Feb 7 13:38:11 CET 2012

anatoly techtonik <techtonik at gmail.com> added the comment:

All right, I've found some time to grep conversation related to COLUMNS/ROWS environment/shell variable.

+1 for low level system wrapper to get current stdout console size
-1 on COLUMN/ROWS "business logic"

My user story 001:
I need exact values of my console and don't want them to be overridden by environment/shell variables. 
-- or --
When troubleshooting problems with console width on user side and don't want this feature to implicitly depend on some variables in user environment.


Python tracker <report at bugs.python.org>

More information about the Python-bugs-list mailing list