Skip to main content

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

Project description

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.

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.

Project details


Release history Release notifications

This version
History Node

1.0.0

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, size & hash SHA256 hash help File type Python version Upload date
backports.shutil_get_terminal_size-1.0.0-py2.py3-none-any.whl (6.5 kB) Copy SHA256 hash SHA256 Wheel 3.4 Aug 19, 2014
backports.shutil_get_terminal_size-1.0.0.tar.gz (4.3 kB) Copy SHA256 hash SHA256 Source None Aug 19, 2014

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging CloudAMQP CloudAMQP RabbitMQ AWS AWS Cloud computing Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page