panelreeldemo: don't block on input

pull/282/head
nick black 5 years ago committed by Nick Black
parent aba9a4f967
commit 7295377db7

@ -236,7 +236,7 @@ handle_input(struct notcurses* nc, struct panelreel* pr, int efd,
return (wchar_t)-1; return (wchar_t)-1;
}else{ }else{
if(fds[0].revents & POLLIN){ if(fds[0].revents & POLLIN){
key = demo_getc_blocking(NULL); key = demo_getc_nblock(NULL);
if(key < 0){ if(key < 0){
return -1; return -1;
} }

Loading…
Cancel
Save