notcurses_stop: add margin_t when resetting cursor #1345

pull/1347/head
nick black 3 years ago
parent 50c6240efa
commit d9e95afe4d
No known key found for this signature in database
GPG Key ID: 5F43400C21CBFACC

@ -1146,7 +1146,7 @@ int notcurses_stop(notcurses* nc){
// wrote. move it to the bottom left of the screen.
if(!nc->tcache.smcup){
tty_emit(tiparm(nc->tcache.hpa, 0), nc->ttyfd);
tty_emit(tiparm(nc->tcache.vpa, nc->lfdimy - 1), nc->ttyfd);
tty_emit(tiparm(nc->tcache.vpa, nc->lfdimy + nc->margin_t - 1), nc->ttyfd);
}
if(nc->ttyfd >= 0){
ret |= close(nc->ttyfd);

Loading…
Cancel
Save