mirror of
https://github.com/ARM-software/workload-automation.git
synced 2025-07-15 03:23:47 +01:00
Fixes for Emacs
- Do not try to use a pager if it explicitly disabled with PAGER='' in the environment. - If terminal size is identified as (0, 0), fall back to default (80, 25).
This commit is contained in:
wlauto/utils
@ -523,9 +523,9 @@ def load_class(classpath):
|
||||
def get_pager():
|
||||
"""Returns the name of the system pager program."""
|
||||
pager = os.getenv('PAGER')
|
||||
if not pager:
|
||||
if pager is None:
|
||||
pager = find_executable('less')
|
||||
if not pager:
|
||||
if pager is None:
|
||||
pager = find_executable('more')
|
||||
return pager
|
||||
|
||||
|
Reference in New Issue
Block a user