mirror of
https://github.com/dankamongmen/notcurses
synced 2025-03-10 01:29:05 -04:00
procroller: use notcurses_get() over notcurses_getc() #1686
This commit is contained in:
parent
0d289958f9
commit
1597b25d39
@ -182,7 +182,6 @@ int xray_demo(struct notcurses* nc){
|
|||||||
marsh.lplane = NULL;
|
marsh.lplane = NULL;
|
||||||
marsh.dm = notcurses_check_pixel_support(nc) ? 0 : 0.5 * delaymultiplier;
|
marsh.dm = notcurses_check_pixel_support(nc) ? 0 : 0.5 * delaymultiplier;
|
||||||
int ret = -1;
|
int ret = -1;
|
||||||
// FIXME need do something about SIGINT here, which can leave us locked up
|
|
||||||
if(pthread_create(&tid1, NULL, xray_thread, NULL)){
|
if(pthread_create(&tid1, NULL, xray_thread, NULL)){
|
||||||
goto err;
|
goto err;
|
||||||
}
|
}
|
||||||
|
@ -72,7 +72,7 @@ int main(int argc, char** argv){
|
|||||||
ncplane_set_fg_rgb(std, 0x00bcaa);
|
ncplane_set_fg_rgb(std, 0x00bcaa);
|
||||||
ncplane_printf_aligned(std, -1, NCALIGN_CENTER, "press any key to continue (%s)", *argv);
|
ncplane_printf_aligned(std, -1, NCALIGN_CENTER, "press any key to continue (%s)", *argv);
|
||||||
notcurses_render(nc);
|
notcurses_render(nc);
|
||||||
notcurses_getc(nc, NULL, NULL, NULL);
|
notcurses_get(nc, NULL, NULL);
|
||||||
if(notcurses_stop(nc)){
|
if(notcurses_stop(nc)){
|
||||||
return EXIT_FAILURE;
|
return EXIT_FAILURE;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user