Re: [PATCH] Remove ncurses meta() call.

"Kevin J. McCarthy" <[email protected]> Thu, 25 Jun 2026 18:30:14 +0800
Newsgroups gmane.mail.mutt.devel
Message-ID <[email protected]>
On Thu, Jun 25, 2026 at 01:14:51PM +0800, Kevin J. McCarthy wrote:
>I'm trying to debug exactly what it's doing on foot and xterm.  It 
>doesn't seem to be simply flipping bit-8 on, because setting $meta_key 
>isn't fixing the problem.  I haven't had time yet to look into it 
>deeply, but I will try this weekend.

Ah, I figured out what foot is doing with meta enabled, (and xterm 
without any metaSendsEscape settings).

If I type Alt-p, the terminal converts 'p', 0x70, to 0xF0, by flipping 
the high bit.  But then it encodes that in utf-8 and sends that to mutt. 
So mutt receives 0xC3 0xB0 in two getch() calls.

It's a mess.  Mutt has no business enabling this mode, and $meta_key 
isn't a solution since it goofs up typing utf-8 at the prompt.

I'm actually pondering pushing this commit to stable and releasing it 
with 2.4.1.  Feedback?

-- 
Kevin J. McCarthy
GPG Fingerprint: 8975 A9B3 3AA3 7910 385C  5308 ADEF 7684 8031 6BDA
signature.asc (application/pgp-signature, 833 B)
-----BEGIN PGP SIGNATURE-----

iQIzBAEBCgAdFiEEiXWpszqjeRA4XFMIre92hIAxa9oFAmo9AzYACgkQre92hIAx
a9qD4hAAvkYJykyXELaxs2dyL5ELgwqV4IIunFHy/eE/naLIYL+xzqypLYiEKeMb
Qk+R0E/RBuiOLSgk04yZGsqPKZzfndEO2/hD8E3rwmXUrGE1eFShcRzutbMo+tJa
UCI5gJqWOZJ+j8/q3JE+zcXDUbtuCqwg7pi9YEODTYCl3IF0xvrHl6in9WLIc9rT
zW9zimLuclYKve2GhCuSvcSYlzAhYZADcZf31j0hAQNMoQGb4BlHCMBNwKBMdO2v
RSVB//cSL7xzAbWdctaCyAqzHomwvHjlQ+G02zdYKaxQHY2zYK+KUi6DyuAU+Bnb
fch9fSlJa1nONXB5AWnMJ1Uuqz1CeZUZiPCtJbMSibCClrnHkdpvGhYh/ABwJqDq
6gjcyl9FRBdH3iL1I4LvQ7zDV0/YrGlkFpGK1y0UgzdheEfKUNgCU0lb5DM0iyT2
TnCkr+b6lpYMoAxSD/YYl+PSJKqkQ18yCA66S9mJXHoLs9I8on6V+11L7s+2mFuZ
C47yzACzPBzozi01DEUpCxjwcCGnukNfw56JZvJJ9QxRGI+W4SD9Fmo2FFHIZuq+
mLV2xvwYGECOwStMIwXk0rvAsx9+LJHBU/S+Km4VmQZ4tzEijUHrLUaKDJuaUhvl
+3erjYXuDLGDeU2wM4WRYqm2x6VpPp/acRuCrZfR9otR95Rd/5A=
=UTcP
-----END PGP SIGNATURE-----