Description: Prefer pager over more. GRASS 6 used a shell script to set the GRASS_PAGER environment variable. GRASS 7 reimplemented the shell script in Python. . The original version of this patch was made by Francesco Paolo Lovergine, and ported to Python by Bas Couwenberg. Author: Francesco Paolo Lovergine Author: Bas Couwenberg Forwarded: not-needed --- a/python/grass/app/runtime.py +++ b/python/grass/app/runtime.py @@ -347,10 +347,12 @@ def set_defaults(config_projshare_path): """Set paths or commands for dependencies and auxiliary utilities""" # GRASS_PAGER if not os.getenv("GRASS_PAGER"): - if shutil.which("more"): - pager = "more" + if shutil.which("pager"): + pager = "pager" elif shutil.which("less"): pager = "less" + elif shutil.which("more"): + pager = "more" elif WINDOWS: pager = "more" else: