Changes between Initial Version and Version 1 of Ticket #326, comment 1


Ignore:
Timestamp:
Jan 2, 2019, 6:01:32 PM (6 years ago)
Author:
Silvan Scherrer

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #326, comment 1

    initial v1  
    1717    if os.environ.get('TERM') in ('dumb', 'emacs'):
    1818        return plainpager
    19 #    if sys.platform == 'win32' or sys.platform.startswith('os2'):
    20 #        return lambda text: tempfilepager(plain(text), 'more <')
    2119    if hasattr(os, 'system') and os.system('(less) 2>/dev/null') == 0:
    2220        return lambda text: pipepager(text, 'less')
     21    if sys.platform == 'win32' or sys.platform.startswith('os2'):
     22        return lambda text: tempfilepager(plain(text), 'more <')
    2323}}}
    2424
    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.
     25testing 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.