aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/Lib/_pyrepl/simple_interact.py
diff options
context:
space:
mode:
authorDino Viehland <dinoviehland@meta.com>2024-07-30 05:03:52 -0700
committerGitHub <noreply@github.com>2024-07-30 14:03:52 +0200
commitd1a1bca1f0550a4715f1bf32b1586caa7bc4487b (patch)
treed17698a50f8f164894985c14c7fbd68c19afb6a4 /Lib/_pyrepl/simple_interact.py
parentd27a53fc02a87e76066fc4e15ff1fff3922a482d (diff)
downloadcpython-d1a1bca1f0550a4715f1bf32b1586caa7bc4487b.tar.gz
cpython-d1a1bca1f0550a4715f1bf32b1586caa7bc4487b.zip
gh-119896: Fix CTRL-Z behavior in the new REPL on Windows (GH-122217)
Diffstat (limited to 'Lib/_pyrepl/simple_interact.py')
-rw-r--r--Lib/_pyrepl/simple_interact.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/Lib/_pyrepl/simple_interact.py b/Lib/_pyrepl/simple_interact.py
index 2c3dffe070c..91aef5e01eb 100644
--- a/Lib/_pyrepl/simple_interact.py
+++ b/Lib/_pyrepl/simple_interact.py
@@ -76,6 +76,7 @@ REPL_COMMANDS = {
"copyright": _sitebuiltins._Printer('copyright', sys.copyright),
"help": "help",
"clear": _clear_screen,
+ "\x1a": _sitebuiltins.Quitter('\x1a', ''),
}