On 2026-06-25 10:06:44 +0800, Kevin J. McCarthy wrote:
> The meta() call enables 8-bit mode on a terminal via the smm terminfo
> entry (or the CS8 flag).  This is an older mode that most likely isn't
> necessary anymore.  On many terminals it allows Alt-x to be sent as an
> 8-bit value instead of Esc-x.

This is not the case with xterm. If xterm is configured to make Meta
send ESC + character, then the meta() call will have no effect. The
meta() call only changes between the following modes:
  * Meta has no effect (the character is sent unmodified).
  * Meta sets the eighth bit of the character.

If I understand correctly, in foot, the meta() call changes between:
  * Meta sends ESC before the character.
  * Meta sets the eighth bit of the character.

-- 
Vincent Lefèvre <[email protected]> - Web: <https://www.vinc17.net/>
100% accessible validated (X)HTML - Blog: <https://www.vinc17.net/blog/>
Work: CR INRIA - computer arithmetic / Pascaline project (LIP, ENS-Lyon)

Reply via email to