Re: [hackers] [st][PATCH] update FAQ regarding meta key

From: Roberto E. Vargas Caballero <k0ga_AT_shike2.com>
Date: Tue, 12 Apr 2022 19:39:01 +0200

Hi,


> just changing $TERM to "st-meta" doesn't enable the meta key, at least
> on vim. searching the mailing list, I learned that `tput smm` was needed
> to enable 8bit mode[0].


This topic is a bit more complex. St is doing something a bit weird
because we are a utf8 terminal, but we don't encode an utf8 sequence
for the meta key. I talked about this topic with Thomas E. Dickey,
the maintainer of xterm and ncurses (including terminfo) and he
confirmed that we are doing it worng. This is the reason why he
didn't add the st-meta definition in the official terminfo distribution.

To be a correct utf8 terminal with meta key we should generate a utf8
sequence for the meta combination. For example, Meta-A generates 0xC1
that enconded in utf8 must be 0xC3 0x81.

I don't know if it is worth to try to fix this or not.

Regards,
Received on Tue Apr 12 2022 - 19:39:01 CEST

This archive was generated by hypermail 2.3.0 : Tue Apr 12 2022 - 19:48:35 CEST