X-Git-Url: https://jasonwoof.com/gitweb/?p=st.git;a=blobdiff_plain;f=st.c;h=19e4379228c707610f7d9e8663352b57e4a0267b;hp=c90bed1746e84104d77497f6006d772d4ecc0e2c;hb=0c8feecbf74674132070169986802c75dd49d688;hpb=a7eef8f230bcf72a85af68fc9a08ca94e52ca18d diff --git a/st.c b/st.c index c90bed1..19e4379 100644 --- a/st.c +++ b/st.c @@ -2431,11 +2431,9 @@ tcontrolcode(uchar ascii) { term.esc &= ~(ESC_CSI|ESC_ALTCHARSET|ESC_TEST); term.esc |= ESC_START; return; - case '\016': /* SO */ - term.charset = 0; - return; - case '\017': /* SI */ - term.charset = 1; + case '\016': /* SO (LS1 -- Locking shift 1) */ + case '\017': /* SI (LS0 -- Locking shift 0) */ + term.charset = 1 - (ascii - '\016'); return; case '\032': /* SUB */ tsetchar(question, &term.c.attr, term.c.x, term.c.y);