alpaca.cpp icon indicating copy to clipboard operation
alpaca.cpp copied to clipboard

Esc as interrupt

Open Terristen opened this issue 1 year ago • 2 comments

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.

Terristen avatar Mar 25 '23 03:03 Terristen

Thank you, works fine on Windows 11. Hope it will get merged

Zerogoki00 avatar Mar 25 '23 18:03 Zerogoki00

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

michieal avatar Apr 04 '23 08:04 michieal