just get info of length and width of terminal/console/cmd


License
BSD-3-Clause
Install
pip install cmdw==0.29

Documentation

cmdw

just get info of length and width of terminal/console/cmd

Installing

Install and update using pip:

$ pip install cmd

cmdw supports Python 2 and newer, Python 3 and newer, and PyPy.

A Simple Example

What does it look like? Here is an example of a cmdw:

>>> import cmdw

>>> cmdw.getWidth()
>>> 164
>>> cmdw.getHeight()
>>> 26
>>> cmdw.getWidth() * "#"
>>> ###############################################################################
....

Support

  • Python 2.7 +, Python 3.x
  • Windows, Linux

Links