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

Allow Ctrl-C to reboot, at the CCP #83

Merged
merged 1 commit into from
May 21, 2024
Merged

Allow Ctrl-C to reboot, at the CCP #83

merged 1 commit into from
May 21, 2024

Conversation

skx
Copy link
Owner

@skx skx commented May 21, 2024

This pull-request close #82, by changing our ReadLine implementation to return a magic error if the user presses Ctrl-C twice in a row.

This then triggers a restart of the CCP.

This only works in the CCP, and in programs it launched. If a user presses this combination otherwise it will terminate the emulation.

In a real CP/M system Ctrl-C would reload, but it is too easy to accidentally press, so I ensure it is two consecuitive Ctrl-Cs that triggers this behaviour.

This pull-request close #82, by changing our ReadLine implementation
to return a magic error if the user presses Ctrl-C twice in a row.

This then triggers a restart of the CCP.

This only works in the CCP, and in programs it launched.  If a user
presses this combination otherwise it will terminate the emulation.

In a real CP/M system  Ctrl-C would reload, but it is too easy to
accidentally press, so I ensure it is two consecuitive Ctrl-Cs that
triggers this behaviour.
@skx skx merged commit b52bd1f into master May 21, 2024
2 checks passed
@skx skx deleted the 82-ctrl-c branch May 21, 2024 02:44
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

Successfully merging this pull request may close these issues.

Pressing Ctrl-C at the input-prompt should reboot
1 participant