[hackers] [st] Add LS2 and LS3 || Roberto E. Vargas Caballero

From: <git_AT_suckless.org>
Date: Mon, 13 Oct 2014 19:17:40 +0200

commit 88429cdcbf937c4042cc315b31fcb8c662bd51fb
Author: Roberto E. Vargas Caballero <k0ga_AT_shike2.com>
Date: Wed Oct 8 11:33:36 2014 +0200

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

diff --git a/st.c b/st.c
index 19e4379..22a1ce6 100644
--- a/st.c
+++ b/st.c
_AT_@ -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 */
Received on Mon Oct 13 2014 - 19:17:40 CEST

This archive was generated by hypermail 2.3.0 : Mon Oct 13 2014 - 19:24:11 CEST