Re: [dev] [st] [PATCH] More compatible with xterm

From: Roberto E. Vargas Caballero <k0ga_AT_shike2.com>
Date: Tue, 1 Oct 2013 11:33:44 +0200

>
> It look like problem not related to save/restore cursor position. This
> test have strange sequence: ESC[m ESC(B ESC)B
> What this sequence should do?

ESC[m = SGR. Parameter=0 restore default graphic rendering values
ESC(B = SCS. Selects USASCII in primary charset (G0)
ESC)B = SCS. Selects USASCII in secondary charset (G1)

I can see now that the problem is related in how we ignore
ESC)B. We don't implement national charsets because we support only
utf8. The only exception is the graphic charset that is heavily used.
It means we implement only the G0 charset. When we receive a ESC( we
read the next character and only we do something useful in ESC(0 or
ESC(B. But when we receive ESC), since we don't implement G1 at all,
we stop reading the escape sequence, and we don't ignore the next
character in the stream, the B. I will submit a fast patch for this
issue.


Beswt regards,

-- 
Roberto E. Vargas Caballero
----------------------------
k0ga_AT_shike2.com
http://www.shike2.com
Received on Tue Oct 01 2013 - 11:33:44 CEST

This archive was generated by hypermail 2.3.0 : Tue Oct 01 2013 - 11:36:09 CEST