|
|
@ -153,8 +153,9 @@ int main(int argc, char** argv){
|
|
|
|
char32_t ie = notcurses_getc_blocking(nc, nullptr);
|
|
|
|
char32_t ie = notcurses_getc_blocking(nc, nullptr);
|
|
|
|
if(ie == (char32_t)-1){
|
|
|
|
if(ie == (char32_t)-1){
|
|
|
|
break;
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
}else if(ie == 'q'){
|
|
|
|
if(ie == NCKEY_RESIZE){
|
|
|
|
break;
|
|
|
|
|
|
|
|
}else if(ie == NCKEY_RESIZE){
|
|
|
|
--i; // rerun with the new size
|
|
|
|
--i; // rerun with the new size
|
|
|
|
if(notcurses_resize(nc, &dimy, &dimx)){
|
|
|
|
if(notcurses_resize(nc, &dimy, &dimx)){
|
|
|
|
notcurses_stop(nc);
|
|
|
|
notcurses_stop(nc);
|
|
|
|