From 6ac115bffdf6be6ea9d0323d8eccd2b5eabb96ce Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Ekl=C3=B6f?= Date: Mon, 15 Jul 2019 12:04:40 +0200 Subject: [PATCH] vt: implement SI/SO (shift in, shift out) This enables switching between the G0 and G1 charsets. --- vt.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/vt.c b/vt.c index 5d4127c5..99f8ea06 100644 --- a/vt.c +++ b/vt.c @@ -810,6 +810,16 @@ action(struct terminal *term, enum action _action, uint8_t c) break; } + case '\016': + /* SO - shift out */ + term->selected_charset = 1; /* G1 */ + break; + + case '\017': + /* SI - shift in */ + term->selected_charset = 0; /* G0 */ + break; + default: LOG_ERR("execute: unimplemented: %c (0x%02x)", c, c); abort();