Skip to content
Commit 0b9b626d authored by Gerhard Sittig's avatar Gerhard Sittig
Browse files

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.
parent f0b2aa5d
Loading
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment