python-consolesize


Very, very basic and simple module to get the size, width and height of the console.

To use it:

from consolesize import ConsoleSize print ConsoleSize.size print ConsoleSize.width print ConsoleSize.height

This module should work on Linux, Windows, and Mac OSX. Basically if it's not Windows, it attempts to use the 'stty' utility which I'm assuming is available on most non-Windows systems.

Project Information

Labels:
python consolesize consolewidth console windows linux osx