Show More
@@ -308,6 +308,13 b' def get_pager_cmd(pager_cmd=None):' | |||||
308 | pager_cmd = os.environ['PAGER'] |
|
308 | pager_cmd = os.environ['PAGER'] | |
309 | except: |
|
309 | except: | |
310 | pager_cmd = default_pager_cmd |
|
310 | pager_cmd = default_pager_cmd | |
|
311 | ||||
|
312 | if pager_cmd == 'less': | |||
|
313 | try: | |||
|
314 | os.getenv('LESS').index('-r') | |||
|
315 | except (ValueError, AttributeError): | |||
|
316 | pager_cmd += ' -r' | |||
|
317 | ||||
311 | return pager_cmd |
|
318 | return pager_cmd | |
312 |
|
319 | |||
313 |
|
320 |
General Comments 0
You need to be logged in to leave comments.
Login now