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.
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.