Re: [PATCH] Remove ncurses meta() call.
Thomas Dickey <[email protected]> Thu, 25 Jun 2026 18:42:33 -0400
| Newsgroups | gmane.mail.mutt.devel |
|---|---|
| Message-ID | <[email protected]> |
On Thu, Jun 25, 2026 at 05:15:29PM -0400, Thomas Dickey wrote: > 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. more to the point: in 2000 (the quoted thread), the meta() call from mutt had no effect on xterm because: a) there were no control sequences to activate it until 6 years later, b) ncurses was already using the terminal in 8-bit mode anyway Roessler's setting of xterm's eightBitInput did have an effect, but neither mutt nor ncurses configuration contributed to that effect. -- Thomas E. Dickey <[email protected]> https://invisible-island.net
signature.asc
(application/pgp-signature, 659 B)
-----BEGIN PGP SIGNATURE----- iQGzBAABCgAdFiEEGYgtkt2kxADCLA1WzCr0RyFnvgMFAmo9rtYACgkQzCr0RyFn vgPVkAv/QV9ltrjVagP9NBu16qANX3pnnkVA/qKyjg3vfIgYHDV1FRlpxEDozi2Y TiTg5UAjSAAV4Xz5hfbHF97JpPE3ZM32csHWzTVlherlGijNk4Hdpz+ASzBr/A/V P41ZUIDmY8lUPRS/VeTVJbDoSOtBquJi8VBMM9DH15Vgxo/Qs9me8V2TJSec50l7 UQgXv6ERm08rJvLlJa0oTOidV5Qsl3gdkBFhXPsklDynFhSiaqS0giT5l09uw0Gg iQnFCC7xsQiTLhsJ1XAS00kCyeZxUBn0LhgOvf/0X8iu/8ZGUGOewzlVd+K8+aEr D3oA2kv8MyaS8Ig62uRKQv3Glt2ViVcQLqRt2hwotZ6KMy3Ytr6sFXKaLXnj5EW5 JsFn4ePeovhNigP1KewQnoL0LBHjPwbKf5CA9MI4C3BJZvEVosaP2FggJ7X7ontu qUMFMiN3NguAeRxgXTEwXRtqsQ/x5x6WK+J542Q2tG97ylFLxCaoulUa9fbLW+ny hWz3YeTg =NFQ3 -----END PGP SIGNATURE-----