diff --git a/CHANGELOG.md b/CHANGELOG.md index b96667dd..3b68f2c2 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -61,6 +61,7 @@ _Private Usage Area_ codepoints to be treated as double-width characters. * OSC 9 desktop notifications (iTerm2 compatible). +* Support for LS2 and LS3 (locking shift) escape sequences. ### Changed diff --git a/vt.c b/vt.c index d0d215f1..97f45c48 100644 --- a/vt.c +++ b/vt.c @@ -388,6 +388,18 @@ action_esc_dispatch(struct terminal *term, uint8_t final) term_reset(term, true); break; + case 'n': + /* LS2 - Locking Shift 2 */ + term->charsets.selected = 2; /* G2 */ + term_update_ascii_printer(term); + break; + + case 'o': + /* LS3 - Locking Shift 3 */ + term->charsets.selected = 3; /* G3 */ + term_update_ascii_printer(term); + break; + case 'D': term_linefeed(term); break;