notcurses-view: support resizes post-render

pull/251/head
nick black 5 years ago
parent 2ada135fc2
commit a868a29c24
No known key found for this signature in database
GPG Key ID: 5F43400C21CBFACC

@ -98,6 +98,17 @@ int main(int argc, char** argv){
if(ie == (char32_t)-1){
break;
}
if(ie == NCKEY_RESIZE){
--i; // rerun with the new size
if(notcurses_resize(nc, &dimy, &dimx)){
notcurses_stop(nc);
return EXIT_FAILURE;
}
if(ncplane_resize_simple(ncp, dimy, dimx)){
notcurses_stop(nc);
return EXIT_FAILURE;
}
}
ncvisual_destroy(ncv);
}
if(notcurses_stop(nc)){

Loading…
Cancel
Save