From a2c9c56f1962ce02e71582c06f389e53d1869e90 Mon Sep 17 00:00:00 2001 From: Craig Barnes Date: Tue, 8 Jun 2021 21:09:40 +0100 Subject: vt: fix SS2/SS3 escape sequences to act correctly as single shifts These sequences are supposed to affect the next printable ASCII character and then reset to the previous character set, but before this commit they were behaving like locking shifts. --- vt.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'vt.c') diff --git a/vt.c b/vt.c index 97f45c48..26affcd2 100644 --- a/vt.c +++ b/vt.c @@ -426,14 +426,12 @@ action_esc_dispatch(struct terminal *term, uint8_t final) case 'N': /* SS2 - Single Shift 2 */ - term->charsets.selected = 2; /* G2 */ - term_update_ascii_printer(term); + term_set_single_shift_ascii_printer(term, 2); /* G2 */ break; case 'O': /* SS3 - Single Shift 3 */ - term->charsets.selected = 3; /* G3 */ - term_update_ascii_printer(term); + term_set_single_shift_ascii_printer(term, 3); /* G3 */ break; case '\\': -- cgit v1.3