8000 5539 - CTRL+Z then Enter will now close shell on Windows. by JazzGlobal · Pull Request #6223 · RustPython/RustPython · GitHub
[go: up one dir, main page]

Skip to content

Conversation

@JazzGlobal
Copy link
Contributor
@JazzGlobal JazzGlobal commented Oct 27, 2025

Fixes #5539

Sending CTRL+Z will now cause the shell to close on Windows.

The EOF will still be stored in the history. This is how it works when running python on CMD and Powershell so I figured I'd leave it alone. Not sure if that's a python feature or a feature of those particular shells 😄

Summary by CodeRabbit

  • Bug Fixes
    • CTRL+Z on Windows now correctly signals end-of-file in the interactive REPL. Trailing carriage returns/newlines are trimmed so an explicit EOF input is recognized when running in a terminal. Non-Windows platforms and other input paths retain previous behavior; public interfaces remain unchanged.

@coderabbitai
Copy link
Contributor
coderabbitai bot commented Oct 27, 2025