Re: [PATCH] Remove ncurses meta() call.
Thomas Dickey <[email protected]> Thu, 25 Jun 2026 17:15:29 -0400
| Newsgroups | gmane.mail.mutt.devel |
|---|---|
| Message-ID | <[email protected]> |
On Thu, Jun 25, 2026 at 08:50:09PM +0800, Kevin J. McCarthy wrote: > On Thu, Jun 25, 2026 at 02:17:17PM +0200, Vincent Lefevre wrote: > > On 2026-06-25 18:30:14 +0800, Kevin J. McCarthy wrote: > > > 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. > > > > The goal in the past was to get non-ASCII characters with the Meta key > > on terminals where this was the only possibility. > > > > https://marc.info/?l=mutt-dev&m=97266015119280&w=3 > > Thanks Vincent. This at least explains why it was originally enabled. not really. ncurses (and any implementation of X/Open Curses which supports meta) would get the actual setting from the terminal. Regardless of xterm's eightBitInput setting, systems in use over the past 25-30 years (aside from antique Unixes which someone may have used as a student...) just set 8 bits in the terminal anyway. Lacking specifics, all you can do is speculate. -- Thomas E. Dickey <[email protected]> https://invisible-island.net
signature.asc
(application/pgp-signature, 659 B)
-----BEGIN PGP SIGNATURE----- iQGzBAABCgAdFiEEGYgtkt2kxADCLA1WzCr0RyFnvgMFAmo9mm4ACgkQzCr0RyFn vgPOyAv/cmQL3TwltCwPoGjNCwOWKzZqQE6GHfMk6PVZiECkj+RtJTRBv/GHj2o1 z/gJqljqlhjtd5gkeNr0dWrEFOh9Mf1h3bNIuyf1aS+9u46UMsZH/bVfkrj/q+5J TfTGrjgIc8lIsW+34aDDt6Kj82iyp4G8TohDjAaw8hTti+mAWttWlgwhgB38c0WT pNCvpV4c7J6TD87WHozo6TLGhI1RAQKsWKQ/juhaFSSL8cnylAqHfBG/3vU6rc0n D9EucUEqbH7W9S7j8Fl5ArzWyWJqR4cW6q1i44JB4HYP1kHxGCh0etDvt9FHc/gp LrDyzLYyUh4oVg4aHqh3FAPfXyoeM08P0pCX81IqHxiHBUMz9+pBpSirNFfYqOHR kEqUlCQ0I587r0TfPKsHvHujL7roxczP8/68V06yXp/RV2LwVG+GV7HEdXiuhAFV xR24rqc1qQqeG0hzHkiKLQPjpsGE+W6acK1dt7SD9un4TwZgDNVeEkCMtHbLE9dv FcfrWbDc =cKav -----END PGP SIGNATURE-----