Changes between Initial Version and Version 1 of Ticket #326, comment 1
- Timestamp:
- Jan 2, 2019, 6:01:32 PM (6 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #326, comment 1
initial v1 17 17 if os.environ.get('TERM') in ('dumb', 'emacs'): 18 18 return plainpager 19 # if sys.platform == 'win32' or sys.platform.startswith('os2'):20 # return lambda text: tempfilepager(plain(text), 'more <')21 19 if hasattr(os, 'system') and os.system('(less) 2>/dev/null') == 0: 22 20 return lambda text: pipepager(text, 'less') 21 if sys.platform == 'win32' or sys.platform.startswith('os2'): 22 return lambda text: tempfilepager(plain(text), 'more <') 23 23 }}} 24 24 25 be aware that you have less rpm installed. If this works for you as well (works like a charm here)I will make that the default.25 testing for less first and when not found it uses old ugly more. When you have less installed (which is a must anyway I'd say) then it should a nice help page. If this works for you as well, I will make that the default.