Skip to content
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

gh-124027: Support Del, PgUp, and PgDn on TERM=vt100 #124028

Merged
merged 1 commit into from
Sep 13, 2024

Conversation

hroncok
Copy link
Contributor

@hroncok hroncok commented Sep 13, 2024

From Fedora's /etc/inputrc:

"\e[5~": history-search-backward
"\e[6~": history-search-forward
"\e[3~": delete-char

Fixes #124027

From Fedora's /etc/inputrc:

    "\e[5~": history-search-backward
    "\e[6~": history-search-forward
    "\e[3~": delete-char

Fixes python#124027
@hroncok
Copy link
Contributor Author

hroncok commented Sep 13, 2024

The tests added in #123607 already work with those data, so I am unsure how to properly test this.

@pablogsal pablogsal changed the title pyrepl: Support Del, PgUp, and PgDn on TERM=vt100 gh-124027: Support Del, PgUp, and PgDn on TERM=vt100 Sep 13, 2024
@pablogsal pablogsal added the needs backport to 3.13 bugs and security fixes label Sep 13, 2024
@pablogsal pablogsal merged commit f4e5643 into python:main Sep 13, 2024
46 checks passed
@miss-islington-app
Copy link

Thanks @hroncok for the PR, and @pablogsal for merging it 🌮🎉.. I'm working now to backport this PR to: 3.13.
🐍🍒⛏🤖 I'm not a witch! I'm not a witch!

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Sep 13, 2024
…124028)

pyrepl: Support Del, PgUp, and PgDn on TERM=vt100

From Fedora's /etc/inputrc:

    "\e[5~": history-search-backward
    "\e[6~": history-search-forward
    "\e[3~": delete-char

Fixes python#124027
(cherry picked from commit f4e5643)

Co-authored-by: Miro Hrončok <[email protected]>
@bedevere-app
Copy link

bedevere-app bot commented Sep 13, 2024

GH-124029 is a backport of this pull request to the 3.13 branch.

@bedevere-app bedevere-app bot removed the needs backport to 3.13 bugs and security fixes label Sep 13, 2024
pablogsal pushed a commit that referenced this pull request Sep 13, 2024
… (#124029)

gh-124027: Support Del, PgUp, and PgDn on TERM=vt100 (GH-124028)

pyrepl: Support Del, PgUp, and PgDn on TERM=vt100

From Fedora's /etc/inputrc:

    "\e[5~": history-search-backward
    "\e[6~": history-search-forward
    "\e[3~": delete-char

Fixes #124027
(cherry picked from commit f4e5643)

Co-authored-by: Miro Hrončok <[email protected]>
@hroncok
Copy link
Contributor Author

hroncok commented Sep 13, 2024

Thanks for merging. Sorry I forgot the issue number prefix.

@pablogsal
Copy link
Member

No problems! Thanks for the PR!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Python 3.13+ REPL inserts ~ on [Del] [PgUp] [PgDn] with TERM=vt100
2 participants