Commit Graph

87 Commits

Author SHA1 Message Date
anatoly techtonik 1652128178 Added tag 3.3 for changeset 74e435de3a07 2013-09-06 15:53:20 +03:00
anatoly techtonik cafb4be89d Reading from pipe works only for Windows 2013-09-06 15:48:03 +03:00
anatoly techtonik 07fc23a9c9 Merge fix for issue #6 into main branch, update README, prepare 3.3 2013-09-06 15:44:53 +03:00
anatoly techtonik 0c598316bf Added tag 2.2 for changeset dc4f153011d0 2013-09-06 15:11:40 +03:00
anatoly techtonik 9ed09fb3c1 Fix issue #6 - "2.1, 3.0-3.2 Broken on Linux", prepare 2.2 2013-09-06 15:07:03 +03:00
anatoly techtonik 3ca7a19996 Added tag 3.2 for changeset af44036b0739 2013-09-01 11:36:22 +03:00
anatoly techtonik fa6eaeccfd Add ability to abort pagination 2013-09-01 11:19:17 +03:00
anatoly techtonik 6586f31850 Added tag 3.1 for changeset 46a047639ff0 2013-09-01 10:50:46 +03:00
anatoly techtonik 0a67d5fe2b Add support for piped input 2013-09-01 10:50:43 +03:00
anatoly techtonik cdb879e6e6 Added tag 3.0 for changeset 5551ef14d79e 2013-09-01 10:25:06 +03:00
anatoly techtonik 73222b2210 README.rst: Beautify 2013-09-01 09:43:41 +03:00
anatoly techtonik 0df881af07 Update docs. 2013-09-01 09:42:53 +03:00
anatoly techtonik 303f481f1f Update changelog with constants 2013-08-27 18:07:44 +03:00
anatoly techtonik 05a91df609 Add constants for getch() function 2013-08-27 17:51:40 +03:00
anatoly techtonik 29379f84fb Fix tests. 2013-08-27 17:03:41 +03:00
anatoly techtonik 3b873d5028 API Break, version bump to 3.0 - reverted default getch() behaviour to again
return single char as in 2.0.
Added getchars() func that always returns list

(it calls getch() that got new internal _getall parameter).
2013-08-27 16:28:31 +03:00
anatoly techtonik e4d35baf46 Added tag 2.1 for changeset 7a3fa6af5b6b 2013-08-27 15:48:07 +03:00
anatoly techtonik 4883988e63 DESIGN.rst: Add notes about ideal keyboard interface 2013-08-27 08:50:03 +03:00
anatoly techtonik 24f0536649 Detect correct getch() function for Windows at run-time (speedup) 2013-08-26 11:21:51 +03:00
anatoly techtonik 8c9bc0ee8a Use WINDOWS constant 2013-08-26 10:45:07 +03:00
anatoly techtonik 5cb8afc2d1 Improve unix getch comment 2013-08-26 09:05:08 +03:00
anatoly techtonik e7f19d27ee Split getch() into _getch_unix() and _getch_windows()
and
detect correct flavor at import time (speedup)
. Prepare 2.1
2013-08-26 09:03:00 +03:00
anatoly techtonik 4eed52d880 Added tag 2.0 for changeset 270f1eebaf1a 2013-07-30 11:35:32 +03:00
anatoly techtonik afe6b59d94 Release 2.0 2013-07-30 11:35:27 +03:00
anatoly techtonik ca7e9c2db6 API Break: getch() now returns list of characters only 2013-07-30 11:16:52 +03:00
anatoly techtonik 05d89abfb9 Added tag 1.4 for changeset b03321d13f9a 2013-07-27 18:31:19 +03:00
anatoly techtonik 582afcc6af Prepare 1.4 2013-07-27 18:31:13 +03:00
anatoly techtonik 1bee13fdcd Add more useful command line interface, usage:
pager.py <file>
  pager.py --test
2013-07-26 17:48:12 +03:00
anatoly techtonik 9fc23aa685 Update code comments 2013-07-26 16:54:12 +03:00
anatoly techtonik 56b00e1c33 Proper tty.setcbreak() replacement requires blocking until at least
one char arrives
2013-07-25 13:41:17 +03:00
anatoly techtonik 7d14542093 Replace tty.setcbreak() with direct termios call 2013-07-24 15:21:13 +03:00
anatoly techtonik b122281fc6 Add chapter explaining what Linux terminal is 2013-07-24 15:08:09 +03:00
anatoly techtonik 287015a79e Added tag 1.3 for changeset d7a4db243440 2012-12-19 16:32:44 +03:00
anatoly techtonik 2317157c92 Get back Python 3 compatibility tag. 2012-12-19 16:32:38 +03:00
anatoly techtonik 482dd78062 Update README.rst 2012-12-19 12:56:58 +03:00
anatoly techtonik 58982356f4 Python 3 compatibility on Windows 2012-12-19 12:54:32 +03:00
anatoly techtonik 113a3c0bd0 Fix special keys on Windows. Bump version to 1.3 2012-12-19 00:55:39 +03:00
anatoly techtonik f90ccc084e Added tag 1.2 for changeset 71f9e382b799 2012-02-03 02:35:58 +03:00
anatoly techtonik 7673c57afb Prepare for 1.2, mention how to run manual test (fixes bug #4) 2012-02-03 02:35:29 +03:00
anatoly techtonik 0a21d49a0e Make dumpkey() return str in Python 3 2012-02-03 02:17:10 +03:00
anatoly techtonik e69144486f TODO cleanup (not sure what testing 'getch() output' means) 2012-02-03 00:34:33 +03:00
anatoly techtonik 87a4b142f6 Add special key 'constants' ENTER LEFT UP RIGHT DOWN ESC, manual
input test, dumpkey() helper, everything Python 3 ready
2012-02-03 00:32:52 +03:00
anatoly techtonik cbb6719381 Added tag 1.1 for changeset 35e3507d15d4 2012-01-17 14:34:09 +03:00
anatoly techtonik 1d942aaf46 Release 1.1 with Python 3 compatibility 2012-01-17 14:31:33 +03:00
anatoly techtonik 716d7e844b Python 3 compatibility fixes:
- iterator's .next() method is renamed to .__next__() in Python 3
- use range() instead of xrange()
2012-01-17 13:09:28 +03:00
anatoly techtonik 975c28e18f Python 3 compatibility - change all `print` calls into `print("")` 2012-01-17 10:31:02 +03:00
anatoly techtonik ef77d1abf1 Missing tag for 1.0 2012-01-17 10:16:47 +03:00
anatoly techtonik 9a7b95d2e9 Rename print_() helper to echo() - don't insert new line automatically, just
make sure the output appears on the screen immediately (as Python has some
problems with that - read below).


print() does output buffering in some Python versions/operating systems
which means that output may not appear immediately after print() is called

(Python 2 on Linux buffers output until newline or read from the stdin)
(Python 3 buffers output on all systems until newline)

See https://groups.google.com/forum/#!topic/dev-python/pg7cEDguGk4
See https://groups.google.com/forum/#!topic/python-ideas/8vLtBO4rzBU
2012-01-15 11:24:40 +03:00
anatoly techtonik 426644db03 Custom print_() function for Python 3 compatibility. 2012-01-09 10:07:08 +03:00
anatoly techtonik 75ff987fe7 Allow Ctrl-C/Ctrl-Break processing on Linux. Fixes issue #3 2012-01-09 09:41:33 +03:00