From bae3c871bb6f05271adba8885b394b86ba0798a8 Mon Sep 17 00:00:00 2001 From: Daniel Eklöf Date: Fri, 15 Jan 2021 17:08:30 +0100 Subject: term/vt/csi: break out cursor save/restore to dedicated functions --- vt.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'vt.c') diff --git a/vt.c b/vt.c index e8e10b2f..cf5eef3d 100644 --- a/vt.c +++ b/vt.c @@ -366,15 +366,11 @@ action_esc_dispatch(struct terminal *term, uint8_t final) case 0: switch (final) { case '7': - term->grid->saved_cursor = term->grid->cursor; - term->vt.saved_attrs = term->vt.attrs; - term->saved_charsets = term->charsets; + term_save_cursor(term); break; case '8': term_restore_cursor(term, &term->grid->saved_cursor); - term->vt.attrs = term->vt.saved_attrs; - term->charsets = term->saved_charsets; break; case 'c': -- cgit v1.3