pydu/docs/console.rst

15 lines
418 B
ReStructuredText
Raw Normal View History

2017-11-12 03:36:50 +00:00
Console
-------
2017-11-12 18:25:30 +00:00
.. py:function:: pydu.console.console_size()
2017-11-12 03:36:50 +00:00
For Windows, return (width, height) of available window area, (80, 25)
if no console is allocated.
For POSIX system, return (width, height) of console terminal. (80, 25)
on IOError, i.e. when no console is allocated.
For other system, return (80, 25).
>>> from pydu.console import console_size
>>> console_size()
(80, 25)