[PATCH] [st] Fix inconsistent BackSpace behavior (was Re: [dev] [st] inconsistent backspace and alt+backspace behavior)

From: Alive 4ever <alive4ever_AT_live.com>
Date: Sat, 9 Jul 2016 03:52:13 +0000

On Sat, Jul 09, 2016 at 10:27:04AM +0700, alive4ever wrote:

> Should I add "\033\177" or there is another workaround?

Looks like I finally found the answer myself.

I hope this patch will be included as default reference config.def.h in
future releases, so that users will get consistent BackSpace and
Alt+BackSpace behavior. This patch is based on 0.6 source code tarball
(tar.gz version).

Index: b/config.def.h
===================================================================
--- a/config.def.h
+++ b/config.def.h
_AT_@ -268,6 +268,7 @@
         { XK_Delete, XK_ANY_MOD, "\033[P", -1, 0, 0},
         { XK_Delete, XK_ANY_MOD, "\033[3~", +1, 0, 0},
         { XK_BackSpace, XK_NO_MOD, "\177", 0, 0, 0},
+ { XK_BackSpace, Mod1Mask, "\033\177", 0, 0, 0},
         { XK_Home, ShiftMask, "\033[2J", 0, -1, 0},
         { XK_Home, ShiftMask, "\033[1;2H", 0, +1, 0},
         { XK_Home, XK_ANY_MOD, "\033[H", 0, -1, 0},
Received on Sat Jul 09 2016 - 05:52:13 CEST

This archive was generated by hypermail 2.3.0 : Sat Jul 09 2016 - 06:00:13 CEST