notcurses-demo: stop trying to read after NCKEY_EOF #2547

pull/2549/head
nick black 2 years ago
parent 678273aaf5
commit 5b15703fa9
No known key found for this signature in database
GPG Key ID: 5F43400C21CBFACC

@ -125,6 +125,9 @@ ultramegaok_demo(void* vnc){
if(id == 0){
continue;
}
if(id == NCKEY_EOF){
break;
}
// go ahead and pass keyboard through to demo, even if it was a 'q' (this
// might cause the demo to exit immediately, as is desired). we can't just
// mess with the menu/HUD in our own context, as the demo thread(s) might

Loading…
Cancel
Save