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

From: Christoph Lohmann <20h_AT_r-36.net>
Date: Mon, 31 Aug 2015 15:13:14 +0200

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.

If your parser keeps the second byte intact, then \0202 is 0x82,
which is BPH or Break Permitted Here. St simply ignores that control
code.

There is not really a right or wrong here.


Sincerely,

Christoph Lohmann
Received on Mon Aug 31 2015 - 15:13:14 CEST

This archive was generated by hypermail 2.3.0 : Mon Aug 31 2015 - 16:12:09 CEST