Skip to content

Commit 2a3193b

Browse files
StanFromIrelandclin1234
authored andcommitted
_pyrepl/pager.py: call less with --clear-screen (python#146382)
1 parent 630d867 commit 2a3193b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Lib/_pyrepl/pager.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ def pipe_pager(text: str, cmd: str, title: str = '') -> None:
138138
'.'
139139
'?e (END):?pB %pB\\%..'
140140
' (press h for help or q to quit)')
141-
env['LESS'] = '-RmPm{0}$PM{0}$'.format(prompt_string)
141+
env['LESS'] = '-RcmPm{0}$PM{0}$'.format(prompt_string)
142142
proc = subprocess.Popen(cmd, shell=True, stdin=subprocess.PIPE,
143143
errors='backslashreplace', env=env)
144144
assert proc.stdin is not None

0 commit comments

Comments
 (0)