-
-
Notifications
You must be signed in to change notification settings - Fork 34.4k
Don't call pager with --clear-screen #148321
Copy link
Copy link
Open
Labels
stdlibStandard Library Python modules in the Lib/ directoryStandard Library Python modules in the Lib/ directorytopic-replRelated to the interactive shellRelated to the interactive shelltype-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error
Metadata
Metadata
Assignees
Labels
stdlibStandard Library Python modules in the Lib/ directoryStandard Library Python modules in the Lib/ directorytopic-replRelated to the interactive shellRelated to the interactive shelltype-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error
Bug report
Bug description:
This was recently introduced by #146382.
I believe this rather lead to a bad user experience, see #146382 (comment). The screen will be cleared regardless on the text size, even if it's small, like small docstrings. Then you have to scroll up terminal to see recent output and so on.
IMO, it's better to follow git's defaults, which uses
--quit-if-one-screenoption to display small texts "inline". We could too.CPython versions tested on:
CPython main branch
Operating systems tested on:
No response
Linked PRs