[wiki] [sites] Add keyboard path for st || Roberto E. Vargas Caballero
commit 0dd13d96470ff7d9a71330d55fc848f63cc75a4f
Author: Roberto E. Vargas Caballero <k0ga_AT_shike2.com>
Date: Tue Nov 4 19:27:25 2014 +0100
Add keyboard path for st
This patch makes st more similar to other bugsy terminal
emulators. This help to people that use system that are
not sane and don't respect the terminfo database.
diff --git a/st.suckless.org/patches/st-keyboard.diff b/st.suckless.org/patches/st-keyboard.diff
new file mode 100644
index 0000000..9c66c2d
--- /dev/null
+++ b/st.suckless.org/patches/st-keyboard.diff
_AT_@ -0,0 +1,54 @@
+diff --git a/config.def.h b/config.def.h
+index 1667ed6..af7b2a0 100644
+--- a/config.def.h
++++ b/config.def.h
+_AT_@ -166,6 +166,7 @@ static uint forceselmod = ShiftMask;
+
+ static Key key[] = {
+ /* keysym mask string appkey appcursor crlf */
++ { XK_BackSpace, XK_ANY_MOD, "", 0, 0, 0},
+ { XK_KP_Home, ShiftMask, "[2J", 0, -1, 0},
+ { XK_KP_Home, ShiftMask, "[1;2H", 0, +1, 0},
+ { XK_KP_Home, XK_ANY_MOD, "[H", 0, -1, 0},
+_AT_@ -202,8 +203,7 @@ static Key key[] = {
+ { XK_KP_Delete, ControlMask, "[3;5~", +1, 0, 0},
+ { XK_KP_Delete, ShiftMask, "[2K", -1, 0, 0},
+ { XK_KP_Delete, ShiftMask, "[3;2~", +1, 0, 0},
+- { XK_KP_Delete, XK_ANY_MOD, "[P", -1, 0, 0},
+- { XK_KP_Delete, XK_ANY_MOD, "", +1, 0, 0},
++ { XK_KP_Delete, XK_ANY_MOD, "[3~", 0, 0, 0},
+ { XK_KP_Multiply, XK_ANY_MOD, "Oj", +2, 0, 0},
+ { XK_KP_Add, XK_ANY_MOD, "Ok", +2, 0, 0},
+ { XK_KP_Enter, XK_ANY_MOD, "OM", +2, 0, 0},
+_AT_@ -257,8 +257,7 @@ static Key key[] = {
+ { XK_Delete, ControlMask, "[3;5~", +1, 0, 0},
+ { XK_Delete, ShiftMask, "[2K", -1, 0, 0},
+ { XK_Delete, ShiftMask, "[3;2~", +1, 0, 0},
+- { XK_Delete, XK_ANY_MOD, "[P", -1, 0, 0},
+- { XK_Delete, XK_ANY_MOD, "", +1, 0, 0},
++ { XK_Delete, XK_ANY_MOD, "[3~", 0, 0, 0},
+ { XK_Home, ShiftMask, "[2J", 0, -1, 0},
+ { XK_Home, ShiftMask, "[1;2H", 0, +1, 0},
+ { XK_Home, XK_ANY_MOD, "[H", 0, -1, 0},
+diff --git a/st.info b/st.info
+index 3b754db..f760a6a 100644
+--- a/st.info
++++ b/st.info
+_AT_@ -53,7 +53,7 @@ st| simpleterm,
+ ka3=\E[5~,
+ kc1=\E[4~,
+ kc3=\E[6~,
+- kbs=,
++ kbs=,
+ kcbt=\E[Z,
+ kb2=\EOu,
+ kcub1=\EOD,
+_AT_@ -73,7 +73,7 @@ st| simpleterm,
+ kri=\E[1;2A,
+ kclr=\E[3;5~,
+ kdl1=\E[3;2~,
+- kdch1=,
++ kdch1=\E[3~,
+ kich1=\E[2~,
+ kend=\E[4~,
+ kf1=\EOP,
Received on Tue Nov 04 2014 - 19:28:28 CET
This archive was generated by hypermail 2.3.0
: Thu Jun 18 2015 - 17:39:44 CEST