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

Attachment: signature.asc
Description: PGP signature

Reply via email to