Reading from pipe works only for Windows
This commit is contained in:
@@ -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
|
||||
|
||||
4
pager.py
4
pager.py
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user