]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.13] gh-124027: Support Del, PgUp, and PgDn on TERM=vt100 (GH-124028) (#124029)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Fri, 13 Sep 2024 01:36:34 +0000 (03:36 +0200)
committerGitHub <noreply@github.com>
Fri, 13 Sep 2024 01:36:34 +0000 (01:36 +0000)
commit112b1704fa6165ce6386ce2d9363fb73dd799de5
treebce010423f3e2a9c86a1c5fd150b7b32186ffe8b
parent660baa14d698379b9122e62b3d8015dd66234d3e
[3.13] gh-124027: Support Del, PgUp, and PgDn on TERM=vt100 (GH-124028) (#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 https://github.com/python/cpython/issues/124027
(cherry picked from commit f4e5643df64d0c2a009ed224560044b3409a47c0)

Co-authored-by: Miro HronĨok <miro@hroncok.cz>
Lib/_pyrepl/historical_reader.py
Lib/_pyrepl/reader.py
Misc/NEWS.d/next/Core_and_Builtins/2024-09-13-02-25-06.gh-issue-124027.to_9DY.rst [new file with mode: 0644]