1
0
mirror of https://github.com/CPunch/Laika.git synced 2025-10-18 21:10:22 +00:00

Shell: CTRL+A now kills the shell

This commit is contained in:
2022-04-15 15:27:50 -05:00
parent 7d9ed4ab87
commit 9a6562f440
3 changed files with 9 additions and 5 deletions

View File

@@ -254,7 +254,7 @@ void shellC_connectToCNC(tShell_client *client, char *ip, char *port) {
}
bool shellC_poll(tShell_client *client, int timeout) {
struct sLaika_pollEvent *evnts, *evnt;
struct sLaika_pollEvent *evnts;
int numEvents, i;
/* run any scheduled tasks, this could be moved but it works fine here for now */
@@ -268,8 +268,7 @@ bool shellC_poll(tShell_client *client, int timeout) {
return false;
for (i = 0; i < numEvents; i++) {
evnt = &evnts[i];
laikaP_handleEvent(evnt);
laikaP_handleEvent(&evnts[i]);
}
/* flush any events after (eg. made by a packet handler) */