Skip to content

Esc as interrupt#155

Open
Terristen wants to merge 2 commits into
antimatter15:masterfrom
Terristen:esc-as-interrupt
Open

Esc as interrupt#155
Terristen wants to merge 2 commits into
antimatter15:masterfrom
Terristen:esc-as-interrupt

Conversation

@Terristen

Copy link
Copy Markdown

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.

@Zerogoki00

Copy link
Copy Markdown

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

@michieal

michieal commented Apr 4, 2023

Copy link
Copy Markdown

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

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.

3 participants