sites

public wiki contents of suckless.org
git clone git://git.suckless.org/sites
Log | Files | Refs

st-keyboard.diff (2287B)


      1 diff --git a/config.def.h b/config.def.h
      2 index 1667ed6..af7b2a0 100644
      3 --- a/config.def.h
      4 +++ b/config.def.h
      5 @@ -166,6 +166,7 @@ static uint forceselmod = ShiftMask;
      6  
      7  static Key key[] = {
      8  	/* keysym           mask            string      appkey appcursor crlf */
      9 +	{ XK_BackSpace,     XK_ANY_MOD,     "\177",          0,    0,    0},
     10  	{ XK_KP_Home,       ShiftMask,      "\033[2J",       0,   -1,    0},
     11  	{ XK_KP_Home,       ShiftMask,      "\033[1;2H",     0,   +1,    0},
     12  	{ XK_KP_Home,       XK_ANY_MOD,     "\033[H",        0,   -1,    0},
     13 @@ -202,8 +203,7 @@ static Key key[] = {
     14  	{ XK_KP_Delete,     ControlMask,    "\033[3;5~",    +1,    0,    0},
     15  	{ XK_KP_Delete,     ShiftMask,      "\033[2K",      -1,    0,    0},
     16  	{ XK_KP_Delete,     ShiftMask,      "\033[3;2~",    +1,    0,    0},
     17 -	{ XK_KP_Delete,     XK_ANY_MOD,     "\033[P",       -1,    0,    0},
     18 -	{ XK_KP_Delete,     XK_ANY_MOD,     "\177",         +1,    0,    0},
     19 +	{ XK_KP_Delete,     XK_ANY_MOD,     "\033[3~",       0,    0,    0},
     20  	{ XK_KP_Multiply,   XK_ANY_MOD,     "\033Oj",       +2,    0,    0},
     21  	{ XK_KP_Add,        XK_ANY_MOD,     "\033Ok",       +2,    0,    0},
     22  	{ XK_KP_Enter,      XK_ANY_MOD,     "\033OM",       +2,    0,    0},
     23 @@ -257,8 +257,7 @@ static Key key[] = {
     24  	{ XK_Delete,        ControlMask,    "\033[3;5~",    +1,    0,    0},
     25  	{ XK_Delete,        ShiftMask,      "\033[2K",      -1,    0,    0},
     26  	{ XK_Delete,        ShiftMask,      "\033[3;2~",    +1,    0,    0},
     27 -	{ XK_Delete,        XK_ANY_MOD,     "\033[P",       -1,    0,    0},
     28 -	{ XK_Delete,        XK_ANY_MOD,     "\177",         +1,    0,    0},
     29 +	{ XK_Delete,        XK_ANY_MOD,     "\033[3~",       0,    0,    0},
     30  	{ XK_Home,          ShiftMask,      "\033[2J",       0,   -1,    0},
     31  	{ XK_Home,          ShiftMask,      "\033[1;2H",     0,   +1,    0},
     32  	{ XK_Home,          XK_ANY_MOD,     "\033[H",        0,   -1,    0},
     33 diff --git a/st.info b/st.info
     34 index 3b754db..f760a6a 100644
     35 --- a/st.info
     36 +++ b/st.info
     37 @@ -53,7 +53,7 @@ st| simpleterm,
     38  	ka3=\E[5~,
     39  	kc1=\E[4~,
     40  	kc3=\E[6~,
     41 -	kbs=\010,
     42 +	kbs=\0177,
     43  	kcbt=\E[Z,
     44  	kb2=\EOu,
     45  	kcub1=\EOD,
     46 @@ -73,7 +73,7 @@ st| simpleterm,
     47  	kri=\E[1;2A,
     48  	kclr=\E[3;5~,
     49  	kdl1=\E[3;2~,
     50 -	kdch1=\0177,
     51 +	kdch1=\E[3~,
     52  	kich1=\E[2~,
     53  	kend=\E[4~,
     54  	kf1=\EOP,