mlog: set LV environment variable for pager.

pull/11168/head
Phil Jones 2 years ago committed by Xavier Claessens
parent 8bfc29f91f
commit 41ab2ef8af
  1. 3
      mesonbuild/mlog.py

@ -436,6 +436,9 @@ def start_pager() -> None:
env = os.environ.copy()
if 'LESS' not in env:
env['LESS'] = 'RXF'
# Set "-c" for lv to support color
if 'LV' not in env:
env['LV'] = '-c'
log_pager = subprocess.Popen(pager_cmd, stdin=subprocess.PIPE,
text=True, encoding='utf-8', env=env)
except Exception as e:

Loading…
Cancel
Save