From 975e70dae1d94e425745fd6b6447d4e3f748b75b Mon Sep 17 00:00:00 2001 From: Daniel Eklöf Date: Fri, 11 Dec 2020 20:01:19 +0100 Subject: csi: ‘CSI s’ and ‘CSI u’ now saves/restores attributes and charsets MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- csi.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'csi.c') diff --git a/csi.c b/csi.c index eaa527a0..7893926a 100644 --- a/csi.c +++ b/csi.c @@ -1108,10 +1108,14 @@ csi_dispatch(struct terminal *term, uint8_t final) case 's': term->grid->saved_cursor = term->grid->cursor; + term->vt.saved_attrs = term->vt.attrs; + term->saved_charsets = term->charsets; break; case 'u': term_restore_cursor(term, &term->grid->saved_cursor); + term->vt.attrs = term->vt.saved_attrs; + term->charsets = term->saved_charsets; break; case 't': { -- cgit v1.3