Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Control+C/Control+Break should probably be handled as stop key #15

Open
PhMajerus opened this issue Jan 8, 2022 · 0 comments
Open

Control+C/Control+Break should probably be handled as stop key #15

PhMajerus opened this issue Jan 8, 2022 · 0 comments

Comments

@PhMajerus
Copy link

Currently, the cbmbasic.exe in interactive mode exits when Control+C or Control+Break is pressed.
It would probably feel more natural, and avoid users losing their code when they're trying to program something and are trying to break back to the interactive prompt, if these keystrokes were handled by cbmbasic as equivalent to the original Stop (Run/Stop) key.

On Win32, this can be achieved by providing a handler routine to SetConsoleCtrlHandler. Be aware the routine will be called from another thread.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant