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

From: Christoph Lohmann <20h_AT_r-36.net>
Date: Sun, 30 Aug 2015 16:10:28 +0200

Greetings.

On Sun, 30 Aug 2015 16:10:28 +0200 Pickfire <pickfire_AT_riseup.net> wrote:
>
> Hi, I found something that st display wrongly. I got it from
> https://mosh.mit.edu/#techinfo
>
> For ISO 2022 locking escapes:
>
> me_AT_alarmpi ~> echo -e "\033(0"
>
> me_AT_alarmpi ~>
>
> St does this:
>
> me_AT_alarmpi ~> echo -e "\033(0"
>
> ␋┴▒┼_AT_▒┌▒⎼└⎻␋ ·>
>
> 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 ~>
>
> Is there any way to fix this? Should I put it into the TODO?

The st parsing of the escape sequences is easy to grasp in five minutes.
Please send in a patch when you fixed it.


Sincerely,

Christoph Lohmann

"Be resolute, fear no sacrifice and surmount every difficulty to win victory."
     --Mao Tse Tung ("The Foolish Old Man Who Removed the Mountains" (June 11, 1945), Selected Works, Vol. III, p. 321. *)
Received on Sun Aug 30 2015 - 16:10:28 CEST

This archive was generated by hypermail 2.3.0 : Sun Aug 30 2015 - 16:24:04 CEST