Skip to content

Don't call pager with --clear-screen #148321

@skirpichev

Description

@skirpichev

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-screen option to display small texts "inline". We could too.

CPython versions tested on:

CPython main branch

Operating systems tested on:

No response

Linked PRs

Metadata

Metadata

Assignees

No one assigned

    Labels

    stdlibStandard Library Python modules in the Lib/ directorytopic-replRelated to the interactive shelltype-bugAn unexpected behavior, bug, or error

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions