st

simple terminal

git clone https://9o.is/git/st.git

commit 8716dc363ca1a7991b32e330ee48e79e3bb9db21
parent d659f3764cc71f44f999291a40078e5a17e99ead
Author: Roberto E. Vargas Caballero <k0ga@shike2.com>
Date:   Wed,  8 Oct 2014 11:33:36 +0200

Add LS2 and LS3

These sequences are the equivalents of LS0 and LS1, but for G2 and
G3.

Diffstat:
Mst.c | 4++++
1 file changed, 4 insertions(+), 0 deletions(-)

diff --git a/st.c b/st.c @@ -2497,6 +2497,10 @@ eschandle(uchar ascii) { case 'k': /* old title set compatibility */ tstrsequence(ascii); return 0; + case 'n': /* LS2 -- Locking shift 2 */ + case 'o': /* LS3 -- Locking shift 3 */ + term.charset = 2 + (ascii - 'n'); + break; case '(': /* GZD4 -- set primary charset G0 */ case ')': /* G1D4 -- set secondary charset G1 */ case '*': /* G2D4 -- set tertiary charset G2 */