Skip to content

sqlite3 CLI keeps part of previous commands when scrolling history #135883

Open
@tanloong

Description

@tanloong

Bug report

Bug description:

Enter the sqlite3 CLI on the main branch, type SELECT * FROM sqlite_master; , press enter. Then press <Up>, the history command SELECT * FROM sqlite_master; is displayed. And then press <Down>, the current line will be partially cleared, the SELECT * FR is left on the screen.

$ ./python -m sqlite3 
sqlite> SELECT * FROM sqlite_master;
sqlite> |
simplescreenrecorder-2025-06-24_17.33.25.mp4

CPython versions tested on:

CPython main branch

Operating systems tested on:

Linux

Linked PRs

Metadata

Metadata

Assignees

No one assigned

    Labels

    stdlibPython modules in the Lib dirtopic-sqlite3type-bugAn unexpected behavior, bug, or error

    Projects

    Status

    In Progress

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions