mirror of
https://github.com/dankamongmen/notcurses
synced 2025-03-09 17:19:03 -04:00
view: use c++ getc
This commit is contained in:
parent
384bdf88b2
commit
3f86b649aa
@ -90,7 +90,7 @@ int perframe([[maybe_unused]] struct notcurses* _nc, struct ncvisual* ncv, void*
|
||||
keepy = oldy > dimy ? dimy : oldy;
|
||||
keepx = oldx > dimx ? dimx : oldx;
|
||||
char32_t keyp;
|
||||
while((keyp = notcurses_getc_nblock(nc, nullptr)) != (char32_t)-1){
|
||||
while((keyp = nc.getc(false, nullptr)) != (char32_t)-1){
|
||||
if(keyp == NCKEY_RESIZE){
|
||||
return ncplane_resize(ncvisual_plane(ncv), 0, 0, keepy, keepx, 0, 0, dimy, dimx);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user