mirror of
https://github.com/kiedtl/fire.git
synced 2025-04-12 10:28:23 +00:00
*really* terminate on ctrl-c :)
This commit is contained in:
parent
411e8db8a7
commit
b67e8327d9
3
main.c
3
main.c
@ -58,7 +58,7 @@ main ( int argc, char *argv[] )
|
|||||||
// event handling
|
// event handling
|
||||||
usize err = (usize) tb_peek_event(&e, 5);
|
usize err = (usize) tb_peek_event(&e, 5);
|
||||||
|
|
||||||
if (err != 0)
|
if (err < 0)
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
if (e.type == TB_EVENT_KEY)
|
if (e.type == TB_EVENT_KEY)
|
||||||
@ -66,7 +66,6 @@ main ( int argc, char *argv[] )
|
|||||||
switch (e.key)
|
switch (e.key)
|
||||||
{
|
{
|
||||||
case 0x03:
|
case 0x03:
|
||||||
fprintf(stdout, "exiting\n");
|
|
||||||
cleanup(&buf);
|
cleanup(&buf);
|
||||||
exit(0);
|
exit(0);
|
||||||
default:
|
default:
|
||||||
|
Loading…
Reference in New Issue
Block a user