-
Notifications
You must be signed in to change notification settings - Fork 11
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
CCP should reload on Ctrl-C #17
Comments
FWIW I did change the code to restart, and that was trivial:
The real question isn't so much how to do the reboot, but how you want to handle things. If you want to continue using Ctrl-C to exit the emulator then the use of of that character is ruled out - if you can use another character, or require "SPACE Ctrl-C Ctrl-C Y" (which might be too wordy to be memorable) then things get easier. |
I was just writing a fix for that. I thought initially that this feature would be on the CCP code, but it is really on BDOS: https://github.com/brouhaha/cpm22/blob/main/bdos.asm#L573 I'll do a fix on BDOS instead of in the BIOS. |
The documentation for Function 10: Read Console Buffer says, in the keybinding section:
That's something I've been used to pressing at the CCP prompt, because it can trigger the execution of a
$$$.SUB
file (and also allowed you to swap disks back in the day)However your emulator doesn't reload - while #13 is open you could see the difference in "running" vs "restart" by watching the change of user-number, or drive, and of course until #16 is resolved SUBMIT is a non-issue too.
You catch Ctrl-C for your "exit emulation" so I guess this might need some reworking. I did the same thing for a long time, but eventually patched in a HALT, EXIT, and QUIT command to the CCP - they just run
HALT
instructions which is enough for my emulator to terminate.I also defaulted to requiring two CtrlCs in a row to trigger the reboot, but later relented and made this configurable at run-time, via a bios extension and/or CLI flag.
I guess this is a minor issue as reloads happen after control returns from child processes, but I admit I've become very familiar with pressing the key as a matter of habit nowadays.
The text was updated successfully, but these errors were encountered: