From 32a5e9085cfe400f642f7d927af0fd5c473b6a0c Mon Sep 17 00:00:00 2001 From: fang Date: Thu, 15 Apr 2021 01:18:43 +0200 Subject: [PATCH] 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. --- pkg/urbit/vere/io/term.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/pkg/urbit/vere/io/term.c b/pkg/urbit/vere/io/term.c index a1b9ea6e39..472e5d4d84 100644 --- a/pkg/urbit/vere/io/term.c +++ b/pkg/urbit/vere/io/term.c @@ -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);