mirror of
https://github.com/kiedtl/fire.git
synced 2024-11-15 20:46:38 +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
|
||||
usize err = (usize) tb_peek_event(&e, 5);
|
||||
|
||||
if (err != 0)
|
||||
if (err < 0)
|
||||
continue;
|
||||
|
||||
if (e.type == TB_EVENT_KEY)
|
||||
@ -66,7 +66,6 @@ main ( int argc, char *argv[] )
|
||||
switch (e.key)
|
||||
{
|
||||
case 0x03:
|
||||
fprintf(stdout, "exiting\n");
|
||||
cleanup(&buf);
|
||||
exit(0);
|
||||
default:
|
||||
|
Loading…
Reference in New Issue
Block a user