Commit 5e9eb98f authored by Fred Drake's avatar Fred Drake

Oh, ok, so plainpager is probably marginally better.

parent 0a66fcb1
......@@ -955,7 +955,7 @@ def getpager():
if not sys.stdin.isatty() or not sys.stdout.isatty():
return plainpager
if os.environ.get('TERM') in ['dumb', 'emacs']:
return lambda text: sys.stdout.write(text)
return plainpager
if os.environ.has_key('PAGER'):
if sys.platform == 'win32': # pipes completely broken in Windows
return lambda text: tempfilepager(plain(text), os.environ['PAGER'])
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment