-
Notifications
You must be signed in to change notification settings - Fork 231
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
debugger: leave output screen with single key press
Introduce support code for non-buffered console input (single key press that doesn't accumulate input until ENTER is pressed). Support Windows (msvcrt) and POSIX supporting Unix platforms (select and termios). Fall back to the Python's input() routine for Webassembly and Emscripten. Avoid the accumulation of repeated prompts on platforms that support single key presses. Only the backwards compatible fallback on minor platforms involves a prompt, so users can tell when they face that situation. The approach in this commit automatically detects platforms, no config option is required. All depencencies are provided by Python core, there are no external dependencies. The implementation is considered suitable for future maintenance, extension, or adjustment for other platforms.
- Loading branch information
Showing
2 changed files
with
77 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters