notcurses-keyplot: read input

pull/434/head
nick black 5 years ago committed by Nick Black
parent 4926186b5a
commit 359303ed83

@ -12,7 +12,13 @@ int main(void){
std::unique_ptr<ncpp::Plane> n(nc.get_stdplane ());
struct ncplot_options popts{};
struct ncplot* plot = ncplot_create(*n, &popts);
// FIXME
char32_t r;
ncinput ni;
while(errno = 0, (r = nc.getc(true, &ni)) != (char32_t)-1){
if(r == 0){ // interrupted by signal
continue;
}
}
ncplot_destroy(plot);
return EXIT_SUCCESS;
}

Loading…
Cancel
Save