Re: [PATCH] Change <delete> to delete forward in the editor menu.
Thomas Dickey <[email protected]> Sun, 2 Aug 2026 05:13:02 -0400
| Newsgroups | gmane.mail.mutt.devel |
|---|---|
| Message-ID | <[email protected]> |
--w8QlrXl+HOuTyalt
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable
On Sat, Aug 01, 2026 at 09:53:37PM -0300, Jim via Mutt-dev wrote:
> On Sat, Aug 1, 2026 at 21:47 (-0300), Jim wrote:
>=20
> > On Sat, Aug 1, 2026 at 18:34 (-0400), Kurt Hackenberg wrote:
>=20
> >> On Sat, Aug 01, 2026 at 18:05 -0300, Jim via Mutt-dev wrote:
>=20
> >>>> Moreover, Jim also said that the Delete key of
> >>>> his keyboard sends ^H (instead of the usual escape sequence).
>=20
> >>> Or so says my shell when I type Ctrl-V <delete key>.
>=20
> >> That's with X and a terminal emulator?
>=20
> > Yes. Specifically, urxvt. Same in xterm.
>=20
> >> That is peculiar. I would look into why that ^H happens. Something
> >> strange in X keyboard input, I guess. Do you configure that keyboard
> >> input in any way, maybe through xmodmap?
>=20
> > No. A few messages ago (I didn't realize my ideas about "delete" meani=
ng
> > "delete backwards" were going to take on a life of their own) I mention=
ed
> > that back in 2004 I used to swap backspace and delete with xmodmap, but
> > since then I haven't had to do it. I may have known at the time what
> > changed, but if I did, that memory is long gone.
>=20
> >> What does xev say about the Delete key?
>=20
> > It says
>=20
> > KeyPress event, serial 33, synthetic NO, window 0x5200001,
> > root 0x6ab, subw 0x0, time 607437571, (105,127), root:(286,252),
> > state 0x0, keycode 119 (keysym 0xffff, Delete), same_screen YES,
> > XLookupString gives 1 bytes: (7f) "=7F"
> > XmbLookupString gives 1 bytes: (7f) "=7F"
> > XFilterEvent returns: False
>=20
> > which makes a certain amount of sense (to me, anyway): the "delete" key
> > sends the "Delete" keysym and XLookupString turns that into the ASCII D=
EL
> > character.
>=20
>=20
> > Bonus information:
>=20
> > My termlib entry says kdch1=3D\E[3~.
>=20
> > Interestingly (or not) with xfce4-terminal, at my shell prompt,
> > Ctrl-V <delete>
> > outputs <Esc>[3~, and kdch1 is the same \E[3~ there.
>=20
> "Mystery" (partially?) solved. I see that (presumably since 2004 or so) I
> have X resources for xterm
> XTerm*backspacekey: \177
> XTerm*deletekey: \010
those aren't recognized by xterm (see manpage)
> and
> URxvt.deletekey: \010
this is recognized by urxvt (manpage):
deletekey: string
The string to send when the delete key (not the keypad delete =
key)
is pressed. If unset it will send the sequence tradition=
ally
associated with the Execute key.
> (No URxvt.backspacekey, but at least this explains why I get ^H and not
> \E[3~ when I press the "delete" key.)
>=20
> Jim
>=20
>=20
--=20
Thomas E. Dickey <[email protected]>
https://invisible-island.net
--w8QlrXl+HOuTyalt
Content-Type: application/pgp-signature; name="signature.asc"
-----BEGIN PGP SIGNATURE-----
iQGzBAABCgAdFiEEGYgtkt2kxADCLA1WzCr0RyFnvgMFAmpvCh0ACgkQzCr0RyFn
vgMdmgv/YoJt7CGH30JRA6iyUxx4XCdqwH8h2BUs/mLTQ/3C8JiCCPLsxZ08ZyOL
BvNfPS0jgek2FVHcwN8ECSXkYFLfeq1hU2eGD+CUs6CCPu+HyC7O6F8wVrFJ8xbC
7aYc2pzH3BmhOWbC3w7E7h1nf/urg6ThmqtVdLGqOmxpoX+1N4Vkj3u+pP1JGWnv
DazT5XY3wUwa6oMHMfMn6An9Bp7Kn16OckxmOCUA3CpJCVtwvvvrsF+AtBSnL8q2
6dk1XBGyEIojHXnOWkCkU4yhFTbpSgmLOI3BeIDE59JRe0rvpjco40CtVq1fGopE
aG+y5dNQP9ar7BENGSIfpt+feCjT02X/QE909VpMWJa1FXG7W+8ugn6QWfzbno34
Ccqwc3Ghgv6JpSngyOIuX09M/KBtsdJUbs10zatYNlx6JX6m/SJIdF54wjw9aN+N
3qtCpU7ietTq02w+1eg/0DoYnkcqKbHTB/dvmtcbFfbsl7OK4r+461fan4expcpN
7M5P1CzA
=q3sV
-----END PGP SIGNATURE-----
--w8QlrXl+HOuTyalt--