term: exclusive save cursor after explicit move

In other words, don't issue the ANSI escape sequence for saving the
cursor position at the start of a printf hijack sequence. Instead
trust this was already done when the cursor position was last changes
by a blit.
This commit is contained in:
fang 2021-04-15 01:18:43 +02:00
parent e93d50b3ee
commit 32a5e9085c
No known key found for this signature in database
GPG Key ID: EB035760C1BBA972

View File

@ -1519,12 +1519,10 @@ u3_term_io_hija(void)
c3_assert(!"hija-fcntl");
}
// save cursor position,
// set scroll region to exclude the prompt,
// scroll up one line to make space,
// and move the cursor onto that space.
//
_term_it_send_csi(uty_u, 's', 0);
_term_it_send_csi(uty_u, 'r', 2, 1, uty_u->tat_u.siz.row_l - 1);
_term_it_send_csi(uty_u, 'S', 1, 1);
_term_it_send_csi(uty_u, 'H', 2, uty_u->tat_u.siz.row_l - 1, 1);