README.rst 521 B

123456789101112131415161718
  1. backports.shutil_get_terminal_size
  2. ==================================
  3. A backport of the `get_terminal_size`_ function from Python 3.3's shutil.
  4. Unlike the original version it is written in pure Python rather than C,
  5. so it might be a tiny bit slower.
  6. .. _get_terminal_size: https://docs.python.org/3/library/shutil.html#shutil.get_terminal_size
  7. Example usage
  8. -------------
  9. >>> from backports.shutil_get_terminal_size import get_terminal_size
  10. >>> get_terminal_size()
  11. terminal_size(columns=105, lines=33)