A backport of the get_terminal_size function from Python 3.3's shutil.
Likely abandoned. No release or commit for years (last release over 12 years ago). It brings a standard-library module to older Pythons: on current versions, use the built-in one.
$
pip install backports-shutil-get-terminal-sizeREADME as published on PyPI with version 1.0.0.
backports.shutil_get_terminal_size
==================================
A backport of the `get_terminal_size`_ function from Python 3.3's shutil.
Unlike the original version it is written in pure Python rather than C,
so it might be a tiny bit slower.
.. _get_terminal_size: https://docs.python.org/3/library/shutil.html#shutil.get_terminal_size
Example usage
-------------
::
>>> from backports.shutil_get_terminal_size import get_terminal_size
>>> get_terminal_size()
terminal_size(columns=105, lines=33)
History
=======
1.0.0 (2014-08-19)
------------------
First release.