From d2b7c2b76c5f9ca8ae619cb8cd3103272f8132e3 Mon Sep 17 00:00:00 2001 From: nick black Date: Wed, 22 Jul 2020 18:02:23 -0400 Subject: [PATCH] notcurses_init: no screen clear for NO_ALTERNATE_SCREEN, though #817 --- src/lib/notcurses.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/notcurses.c b/src/lib/notcurses.c index 12f5ba982..4b4f963df 100644 --- a/src/lib/notcurses.c +++ b/src/lib/notcurses.c @@ -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.