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

Steffen Nurpmeso <[email protected]> Sat, 01 Aug 2026 20:07:05 +0200
Newsgroups gmane.mail.mutt.devel
Message-ID <20260801180705.UiajU0U0@steffen%sdaoden.eu>
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,
then he should use xmodmap and/or dumpkeys/loadkeys to adjust the
keycodes accordingly.

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

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.

--steffen
|
|Der Kragenbaer,                The moon bear,
|der holt sich munter           he cheerfully and one by one
|einen nach dem anderen runter  wa.ks himself off
|(By Robert Gernhardt)