leave_altscreen: move to logend{y,x} #2084

pull/2087/head
nick black 3 years ago
parent 49c9d1db3b
commit 0631817fd0
No known key found for this signature in database
GPG Key ID: 5F43400C21CBFACC

@ -37,7 +37,15 @@ int notcurses_enter_alternate_screen(notcurses* nc){
}
int notcurses_leave_alternate_screen(notcurses* nc){
return leave_alternate_screen(nc->ttyfp, &nc->tcache);
if(leave_alternate_screen(nc->ttyfp, &nc->tcache)){
return -1;
}
// move to the end of our output
if(nc->rstate.logendy < 0){
return 0;
}
ncplane_cursor_move_yx(notcurses_stdplane(nc), nc->rstate.logendy, nc->rstate.logendx);
return 0;
}
// reset the current colors, styles, and palette. called on startup (to purge

Loading…
Cancel
Save