https://github.com/python/cpython/commit/087a5f6444fbadc0048d8cc395c479985408f1a8
commit: 087a5f6444fbadc0048d8cc395c479985408f1a8
branch: main
author: Stan Ulbrych <[email protected]>
committer: pablogsal <[email protected]>
date: 2026-03-28T17:23:58Z
summary:
`_pyrepl/pager.py`: call `less` with `--clear-screen` (#146382)
files:
M Lib/_pyrepl/pager.py
diff --git a/Lib/_pyrepl/pager.py b/Lib/_pyrepl/pager.py
index 1fddc63e3ee3ad..92afaa5933a225 100644
--- a/Lib/_pyrepl/pager.py
+++ b/Lib/_pyrepl/pager.py
@@ -138,7 +138,7 @@ def pipe_pager(text: str, cmd: str, title: str = '') ->
None:
'.'
'?e (END):?pB %pB\\%..'
' (press h for help or q to quit)')
- env['LESS'] = '-RmPm{0}$PM{0}$'.format(prompt_string)
+ env['LESS'] = '-RcmPm{0}$PM{0}$'.format(prompt_string)
proc = subprocess.Popen(cmd, shell=True, stdin=subprocess.PIPE,
errors='backslashreplace', env=env)
assert proc.stdin is not None
_______________________________________________
Python-checkins mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3//lists/python-checkins.python.org
Member address: [email protected]