notcurses_init: no screen clear for NO_ALTERNATE_SCREEN, though #817

This commit is contained in:
nick black 2020-07-22 18:02:23 -04:00
parent 6d2ba86acc
commit d2b7c2b76c
No known key found for this signature in database
GPG Key ID: 5F43400C21CBFACC

View File

@ -927,7 +927,7 @@ notcurses* notcurses_init(const notcurses_options* opts, FILE* outfp){
free_plane(ret->top);
goto err;
}
}else{
}else if(!(opts->flags & NCOPTION_NO_ALTERNATE_SCREEN)){
// if they expected the alternate screen, but we didn't have one to
// offer, at least clear the screen. try using "clear"; if that doesn't
// fly, use notcurses_refresh() to force a clearing via iterated writes.