mirror of
https://github.com/dankamongmen/notcurses.git
synced 2024-11-20 03:25:47 +00:00
interp PoC: don't use NCOPTION_DRAIN_INPUT
This commit is contained in:
parent
5c82d5b849
commit
37fb92dba3
@ -95,7 +95,6 @@ interp(struct notcurses* nc, int cellpixy, int cellpixx){
|
||||
int main(void){
|
||||
struct notcurses_options nopts = {
|
||||
// .loglevel = NCLOGLEVEL_TRACE,
|
||||
.flags = NCOPTION_DRAIN_INPUT,
|
||||
};
|
||||
struct notcurses* nc = notcurses_init(&nopts, NULL);
|
||||
if(nc == NULL){
|
||||
@ -108,7 +107,7 @@ int main(void){
|
||||
goto err;
|
||||
}
|
||||
ncinput ni;
|
||||
notcurses_getc_blocking(nc, &ni);
|
||||
uint32_t id = notcurses_getc_blocking(nc, &ni);
|
||||
notcurses_stop(nc);
|
||||
return EXIT_SUCCESS;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user