mirror of
https://git.sr.ht/~rabbits/uxn
synced 2024-11-26 15:53:01 +00:00
uxncli: stop on EOF as there is nothing left to run (besides endless loop)
This commit is contained in:
parent
51d43a6989
commit
0c9e67b9be
1 changed files with 2 additions and 1 deletions
|
@ -61,7 +61,8 @@ main(int argc, char **argv)
|
||||||
}
|
}
|
||||||
while(!u.dev[0x0f]) {
|
while(!u.dev[0x0f]) {
|
||||||
int c = fgetc(stdin);
|
int c = fgetc(stdin);
|
||||||
if(c != EOF) console_input(&u, (Uint8)c, CONSOLE_STD);
|
if(c == EOF) break;
|
||||||
|
console_input(&u, (Uint8)c, CONSOLE_STD);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
free(u.ram);
|
free(u.ram);
|
||||||
|
|
Loading…
Reference in a new issue