Re: [PATCH] Change <delete> to delete forward in the editor menu.

Jim via Mutt-dev <[email protected]> Sat, 1 Aug 2026 18:11:12 -0300
Newsgroups gmane.mail.mutt.devel
Message-ID <[email protected]>
On Sat, Aug  1, 2026 at 20:07 (+0200), Steffen Nurpmeso wrote:

> Vincent Lefevre wrote in
>  <[email protected]>:
>>On 2026-07-31 19:37:41 +0800, Kevin J. McCarthy wrote:
>>> Jim and Claus, I respect that this decision is annoying to some older \
>>> users.

>>Well, Jim said that on his system, the key named "backspace" (or with
>>a leftward arrow) on his keyboard sends the DEL character. But this
>>character is normally recognized by ncurses as the <BackSpace> key,
>>not the <Delete> key. Moreover, Jim also said that the Delete key of
>>his keyboard sends ^H (instead of the usual escape sequence). So I

> Well if both keys on his keyboard really send the same keycode,

Who said that?

> then he should use xmodmap and/or dumpkeys/loadkeys to adjust the
> keycodes accordingly.

As I mentioned in an earlier email, the key with "delete" written on it has
keycode 119, and the one with the left-pointing arrow has keycode 22.

>>suspect that Jim will never get the curses <Delete> in Mutt, and the
>>change won't affect him.

I guess I'll find out the next time I update mutt.

> For example, though totally different thing, the G key of my old
> laptop stopped working several weeks after i bought it.  But
> i bucked and did not send it in for repair, instead i was using it
> from May 2019 to end of June 2026 with an adjusted xmodmap in my
> ~/.$HOSTNAME.xmodmaprc plus a system-start adjustment in my
> /root/hosts/$HOSTNAME/system-hook

> if [ "$1" = start ]; then
> echo 'loadkeys: adjusting G key'
>      # dumpkeys/loadkeys
>      /usr/bin/loadkeys <<-_EOT
> altgr keycode 33 = g
> alt keycode 33 = g
> shift alt keycode 33 = G
> shift altgr keycode 33 = G
>           _EOT
> elif [ "$1" = stop ]; then
>      :
> fi

> so i could reach g via f already for the login prompt.
> How one can do this with systemd, i have no idea.

That sounds like it could be a bit annoying if you ever had to type on
someone else's keyboard for some reason.

                        Jim