mirror of
https://github.com/dankamongmen/notcurses.git
synced 2024-11-18 03:25:55 +00:00
view: clear standard plane between renders #685
This commit is contained in:
parent
6e7996f1a8
commit
7e6ec274bb
@ -112,7 +112,7 @@ auto perframe(struct ncvisual* ncv, struct ncvisual_options* vopts,
|
||||
if(keyp == ' '){ // space for unpause
|
||||
continue;
|
||||
}
|
||||
if(keyp == NCKEY_RESIZE){
|
||||
if(keyp == NCKey::Resize){
|
||||
return 0;
|
||||
}else if(keyp >= '0' && keyp <= '8'){ // FIXME eliminate ctrl/alt
|
||||
vopts->blitter = static_cast<ncblitter_e>(keyp - '0');
|
||||
@ -224,6 +224,7 @@ auto main(int argc, char** argv) -> int {
|
||||
failed = true;
|
||||
break;
|
||||
}
|
||||
stdn->erase();
|
||||
struct ncvisual_options vopts{};
|
||||
vopts.n = *stdn;
|
||||
vopts.scaling = scalemode;
|
||||
@ -235,7 +236,10 @@ auto main(int argc, char** argv) -> int {
|
||||
break;
|
||||
}else if(r == 0){
|
||||
stdn->printf(0, NCAlign::Center, "press any key to advance");
|
||||
nc.render();
|
||||
if(!nc.render()){
|
||||
failed = true;
|
||||
break;
|
||||
}
|
||||
char32_t ie = nc.getc(true);
|
||||
if(ie == (char32_t)-1){
|
||||
failed = true;
|
||||
|
Loading…
Reference in New Issue
Block a user