[dev] [st][PATCH] Consistent Alt+BackSpace behavior

2016-07-09 Thread Alive 4ever
The default config specifies BackSpace as "\177". The default behavior should persist across modifier keys, commonly Mod1 (Alt or Meta) which is widely used to delete a word on readline and text editors, notably Emacs. This will make Alt+BackSpace behaves as expected, i.e. sends "\033\177" instead

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

2016-07-09 Thread Alive 4ever
On Sat, Jul 09, 2016 at 08:52:14PM -0400, Alex Pilon wrote: > Content aside, the convention on this list is to use `git format-patch`, > or at least `git diff` or `git show`. > > Let's please stick to a standard patch format. It's not as if people on > this list are too dumb to `patch -Np1 < someP

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

2016-07-08 Thread Alive 4ever
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

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

2016-07-08 Thread Alive 4ever
> 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

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

2016-07-04 Thread Alive 4ever
I am getting inconsistent backspace behavior when using st with the config.h below (default package on Archlinux). The output of 'showkey --ascii' when I press backspace and alt+backspace is below ^? 127 0177 0x7f ^[^H 27 0033 0x1b 8 0010 0x08 This behavior makes it hard to del