Skip to content

Commit

Permalink
scroll PoC: use NO_ALTERNATE_SCREEN|PRESERVE_CURSOR #1823
Browse files Browse the repository at this point in the history
  • Loading branch information
dankamongmen committed Jun 25, 2021
1 parent 1c38c8b commit c21cadb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/poc/scroll.c
Original file line number Diff line number Diff line change
Expand Up @@ -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){
Expand Down

0 comments on commit c21cadb

Please sign in to comment.