Skip to content

gh-148321: use --quit-if-one-screen option for the pager (new REPL)#148322

Open
skirpichev wants to merge 1 commit intopython:mainfrom
skirpichev:pager-quit-if-one-screen
Open

gh-148321: use --quit-if-one-screen option for the pager (new REPL)#148322
skirpichev wants to merge 1 commit intopython:mainfrom
skirpichev:pager-quit-if-one-screen

Conversation

@skirpichev
Copy link
Copy Markdown
Member

@skirpichev skirpichev commented Apr 10, 2026

Currently, by passing --clear-screen (-c) to the pager --- small texts (like few-sentences docstrings) are shown at top of the screen, just as big texts.

I believe it would be better to show this inline instead, not clearing last session commands with output and so on. BTW, this is the default for git commands, e.g. git-log. Of course, we loose on this way ability to use pager for search, but terminal emulators usually have similar capability on its own.

…EPL)

Currently, by passing --clear-screen (-c) to the pager --- small texts (like
few-sentences docstrings) are shown at top of the screen, just as big texts.

I believe it would be better to show this inline instead, not clearing
last session commands with output and so on.  BTW, this is the default
for git commands, e.g. git-log.  Of course, we loose on this way ability
to use pager for search, but terminal emulators usually have similar
capability on its own.
@skirpichev
Copy link
Copy Markdown
Member Author

Like #146382, this might be viewed as a cosmetic change. Though, it's user-visible. So, let me know if I should add news.

@skirpichev skirpichev requested review from ambv and lysnikolaou April 10, 2026 04:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant