skx / cpmulator

Golang CP/M emulator for zork, Microsoft BASIC, Turbo Pascal, Wordstar, lighthouse-of-doom, etc
MIT License
98 stars 3 forks source link

Pressing Ctrl-C at the input-prompt should reboot #82

Closed skx closed 5 months ago

skx commented 5 months ago

This isn't happening because the Readline we're using killing the process instead..

It would be a pain to have to rewrite the readline in terms of read-character (terminating on "\n", and handling backspace, etc.) but that's an obvious solution. (With raw mode, of course).

skx commented 5 months ago

I looked at some readlines, including:

But they had to be ruled out - most would have issues such as taking over the whole input-line, ignoring the prompt a CCP had entered, etc. A shame.