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

Attachment: signature.asc
Description: PGP signature

Reply via email to