From c21cadb6e7fb8312da0b4f85fc207a0353cf73a8 Mon Sep 17 00:00:00 2001 From: nick black Date: Thu, 24 Jun 2021 08:34:52 -0400 Subject: [PATCH] scroll PoC: use NO_ALTERNATE_SCREEN|PRESERVE_CURSOR #1823 --- src/poc/scroll.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/poc/scroll.c b/src/poc/scroll.c index 2f8cf106e1..6ab11c200b 100644 --- a/src/poc/scroll.c +++ b/src/poc/scroll.c @@ -5,7 +5,8 @@ int main(void){ setlocale(LC_ALL, ""); struct notcurses_options opts = { - .flags = NCOPTION_INHIBIT_SETLOCALE, + .flags = NCOPTION_INHIBIT_SETLOCALE | NCOPTION_NO_ALTERNATE_SCREEN + | NCOPTION_PRESERVE_CURSOR, }; struct notcurses* nc = notcurses_core_init(&opts, NULL); if(nc == NULL){