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

Antoine Pitrou report at bugs.python.org
Thu Jan 5 22:42:15 CET 2012


Antoine Pitrou <pitrou at free.fr> added the comment:

The point of named tuples here is that you can use both
    get_terminal_size().columns
or
    columns, rows = get_terminal_size()
depending on the situation.
Also, the better repr() makes debugging easier.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue13609>
_______________________________________


More information about the Python-bugs-list mailing list