diff --git a/README.rst b/README.rst index 6716b0c..b31f443 100644 --- a/README.rst +++ b/README.rst @@ -1,8 +1,8 @@ -Python module to page screen output and get dimensions -of available console space. +Python module to page output to the screen and get console +dimensions. -It is meant to be finally included into standard library +It was meant to be included in standard library http://bugs.python.org/issue8408 | Author: anatoly techtonik @@ -12,6 +12,11 @@ http://bugs.python.org/issue8408 Status ------ +1.1 (stable) + - Python 3 compatibility + - echo() helper function for unbuffered output (in Py3 + output doesn't appear immediately on screen unless it + ends with newline) 1.0 (stable) - getch() now returns list of chars for special keys (fixes bug #1 when special key skipped several pages) @@ -56,6 +61,11 @@ API page number with 'Press any key . . . ' prompt and waits for keypress. +..function:: echo(msg) + + Print msg to the screen without linefeed and flush the output. + + References ---------- diff --git a/pager.py b/pager.py index 5e5c2ad..4eeb02f 100755 --- a/pager.py +++ b/pager.py @@ -14,7 +14,7 @@ Author: anatoly techtonik License: Public Domain (use MIT if Public Domain doesn't work for you) """ -__version__ = '1.1dev' +__version__ = '1.1' import os,sys @@ -189,7 +189,7 @@ def getch(): def echo(msg): """ - Print msg to the screen without newline ending and flush the output. + Print msg to the screen without linefeed and flush the output. Standard print() function doesn't flush, see: https://groups.google.com/forum/#!topic/python-ideas/8vLtBO4rzBU diff --git a/setup.py b/setup.py index 8d37ac9..075acde 100644 --- a/setup.py +++ b/setup.py @@ -3,7 +3,7 @@ from distutils.core import setup setup( name='pager', - version='1.0', + version='1.1', description='Terminal/console pager module for Python', long_description=open('README.rst').read(), py_modules=['pager'], @@ -15,5 +15,7 @@ setup( 'Environment :: Console', 'License :: Public Domain', 'Operating System :: OS Independent', + 'Programming Language :: Python :: 2', + 'Programming Language :: Python :: 3', ], )