Reading from pipe works only for Windows

This commit is contained in:
anatoly techtonik
2013-09-06 15:48:03 +03:00
parent 07fc23a9c9
commit cafb4be89d
2 changed files with 6 additions and 4 deletions

View File

@@ -14,8 +14,8 @@ Demo
::
python -m pager <file>
<command> | pager.py
pager.py < <file>
<command> | pager.py (Windows only - see issue #7)
pager.py < <file> (Windows only)
# run manual tests that are also a demo
python -m pager --test
@@ -26,6 +26,8 @@ Status
3.3 (stable)
- fix critical issue #6: 3.2 Broken on Linux, thanks
Calvin Spealman (@ironfroggy) for reporting
- reading content from stdin is Windows only feature
for now (see issue #7)
3.2 (broken on Linux)
- abort pagination if ESC or 'q' keys are pressed

View File

@@ -531,8 +531,8 @@ if __name__ == '__main__':
print("pager v%s" % __version__)
print("usage: pager.py <file>")
print(" pager.py --test")
print(" pager.py < <file>")
print(" <command> | pager.py")
print(" pager.py < <file> (Windows)")
print(" <command> | pager.py (Windows)")
sys.exit(-1)
# pager.py --test