Skip to content

About

A backport of the get_terminal_size function from Python 3.3's shutil.

Resources

Stars

8 stars

Watchers

2 watching

Forks

Repository files navigation

backports.shutil_get_terminal_size

http://img.shields.io/pypi/v/backports.shutil_get_terminal_size.svg?style=flat-square http://img.shields.io/pypi/dm/backports.shutil_get_terminal_size.svg?style=flat-square http://img.shields.io/travis/chrippa/backports.shutil_get_terminal_size.svg?style=flat-square

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.

Example usage

>>> from backports.shutil_get_terminal_size import get_terminal_size
>>> get_terminal_size()
terminal_size(columns=105, lines=33)

About

A backport of the get_terminal_size function from Python 3.3's shutil.

Resources

Stars

8 stars

Watchers

2 watching

Forks

Releases

Packages

Used by

Contributors

Languages