Skip to content

gh-135883: Fix sqlite3 CLI keeps part of previous commands when scrolling history #135884

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

tanloong
Copy link
Contributor

@tanloong tanloong commented Jun 24, 2025

Non-printing characters in the prompt need to be surrounded with \001 and \002 so readline knows those characters don't occupy screen space on redisplay.

Reference: https://lists.gnu.org/archive/html/bug-readline/2017-04/msg00018.html

@StanFromIreland
Copy link
Member

@ambv Maybe it would be better to implement this in _colorize.py instead, it could be an option for themes with_prompt_ignore=True?

@@ -0,0 +1 @@
Fix sqlite3 CLI keeping part of previous commands when scrolling history.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
Fix sqlite3 CLI keeping part of previous commands when scrolling history.
Fix :mod:`sqlite3`'s :ref:`interactive shell <sqlite3-cli>` keeping part of
previous commands when scrolling history.

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.

3 participants