alpaca.cpp
alpaca.cpp copied to clipboard
Esc as interrupt
Fixes issue with using CTRL+C to interrupt prediction. The second CTRL+C would always close the application. This fix adds a check for the ESC key and sets the is_interactive variable to true when detected. This will force the program to return to interactive mode after the current prediction.
Thank you, works fine on Windows 11. Hope it will get merged
Cool, but it's not cross-platform. This excludes macos and linux users. I am saying this, because this PR is a great idea... but, it breaks other builds. (I just looked it up, to verify that before saying anything.)