-
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 to get single key presses from a console. Support Windows (msvcrt) and POSIX supporting Unix platforms (select, termios). Fall back to 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, and users can tell when they face that situation. This change increases usability, a single key press leaves the output screen after it was entered by pressing 'o'. Does not require a config item, platform detection is automatic. The approach uses Python core libraries, no external dependencies are involved. The implementation is considered maintainable, lends itself to future extension for more platforms as the need gets identified.
- Loading branch information
Showing
3 changed files
with
88 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,3 +4,4 @@ | |
- IPython | ||
- py.test | ||
- pytest | ||
- msvcrt |
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