Re: [dev] [st] inconsistent backspace and alt+backspace behavior

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

> Mod1Mask typically represents Alt, so try adding this to config.h:
>
> { XK_BackSpace, Mod1Mask, "\177", 0, 0, 0},
>
> Eric
> Received on Tue Jul 05 2016 - 04:28:28 CEST
>
I've added the line into my config.h and now there is no difference
between pressing BackSpace and Alt+Backspace. I don't remove this line.

{ XK_BackSpace, XK_NO_MOD, "\177", 0, 0, 0},

$ showkey -a

Press any keys - Ctrl-D will terminate this program

^? 127 0177 0x7f
^? 127 0177 0x7f

The first ^? is BackSpace pressed, the second ^? is Alt+Backspace pressed.
Should I add "\033\177" or there is another workaround?

For additional information, urxvt recognizes alt+BackSpace perfectly.
^[^? 27 0033 0x1b
         127 0177 0x7f
Received on Sat Jul 09 2016 - 05:27:19 CEST

This archive was generated by hypermail 2.3.0 : Sat Jul 09 2016 - 05:36:12 CEST