diff --git a/.hgtags b/.hgtags index e2740a6..ea72fb2 100644 --- a/.hgtags +++ b/.hgtags @@ -11,3 +11,4 @@ b03321d13f9adeffff16efd78640f563e7fefbe5 1.4 5551ef14d79e7d2a3895222dff9938e4d51f833b 3.0 46a047639ff0598cfa024bd1ee59dcf2cbd83d7b 3.1 af44036b07398d748109c5abd0c665caf3e1f639 3.2 +dc4f153011d0f97f35532cc75a09f2402b2e8943 2.2 diff --git a/README.rst b/README.rst index 1dd584e..fc344a8 100644 --- a/README.rst +++ b/README.rst @@ -23,19 +23,27 @@ Demo Status ------ -3.2 (stable) +3.3 (stable) + - fix critical issue #6: 3.2 Broken on Linux, thanks + Calvin Spealman (@ironfroggy) for reporting + +3.2 (broken on Linux) - abort pagination if ESC or 'q' keys are pressed - prompt callback is now able to abort pagination by returning False -3.1 (stable) +3.1 (broken on Linux) - supports piped input (tested on Windows) -3.0 (stable) - API break in getch() function +3.0 (alpha) - API break in getch() function - reverted getch() behaviour changed in 2.0 - now getch() again returns single char - new constants with underline for getch() keys - new getchars() function that always returns list -2.1 (stable) +2.2 (stable) + - Linux: fix regression in version 2.1 - wrong name for + _get_unix call produced NameError on this platform + (issue #6, thanks Calvin Spealman for report) +2.1 (broken on Linux) - split getch() into _getch_unix() and _getch_windows() and detect correct flavor at import time (speedup) 2.0 (stable) - API break in getch() function @@ -139,6 +147,7 @@ Credits | Danny Yoo for getch()-like unbuffered character reading recipe | http://code.activestate.com/recipes/134892-getch-like-unbuffered/ +| Calvin Spealman (@ironfroggy), issue #6 References ---------- diff --git a/pager.py b/pager.py index 7d18a7c..8a02eae 100755 --- a/pager.py +++ b/pager.py @@ -17,7 +17,7 @@ License: Public Domain (use MIT if the former doesn't work for you) # [ ] measure performance of keypresses in console (Linux, Windows, ...) # [ ] define CAPS LOCK strategy (lowercase) and keyboard layout issues -__version__ = '3.2' +__version__ = '3.3' import os,sys @@ -269,7 +269,7 @@ def _getch_unix(_getall=False): if WINDOWS: getch = _getch_windows else: - getch = _getch_linux + getch = _getch_unix getch.__doc__ = \ """