Re: [dev] [st] Stuck in ISO 2022 locking escapes and Evil escape sequences

From: Joakim Sindholt <opensource_AT_zhasha.com>
Date: Mon, 31 Aug 2015 17:05:39 +0200

On Mon, 2015-08-31 at 15:13 +0200, Christoph Lohmann wrote:
> Greetings.
>
> On Mon, 31 Aug 2015 15:13:14 +0200 FRIGN <dev_AT_frign.de> wrote:
> > On Sun, 30 Aug 2015 21:19:09 +0800
> > Pickfire <pickfire_AT_riseup.net> wrote:
> > > For Evil escape sequences:
> > >
> > > me_AT_alarmpi ~> echo -e "xyz\033[2;2H\0314\0202\nhello"
> > > xŷz
> > > hello
> > > me_AT_alarmpi ~>
> > >
> > > St does this:
> > >
> > > me_AT_alarmpi ~> echo -e "xyz\033[2;2H\0314\0202\nhello"
> > > x̂z
> > > hello
> > > me_AT_alarmpi ~>
> >
> > This goes beyond my knowledge of escape sequences. Can
> > anybody track down the issue here?
>
> The part about \0314\0202 is invalid UTF‐8. Depending on your font li‐
> braries dragons might happen.

\0314\0202 = 11001100 10000010
Which breaks up to
110 01100 (first byte of 2-byte sequence)
10 000010 (nth sequence byte)
Which becomes 01100000010 = U+0302 COMBINING CIRCUMFLEX ACCENT (^)

With the WIP combining character patch I sent to the list some time ago
now it shows as "x̂yz" (but does other weird things when entered into a
non-empty terminal). gnome-terminal behaves equally weird with moving
the cursor some amount of lines up, not printing hello or the hat.

-- Joakim
Received on Mon Aug 31 2015 - 17:05:39 CEST

This archive was generated by hypermail 2.3.0 : Mon Aug 31 2015 - 17:12:08 CEST