support for ESC % G

Michal Svoboda michal.svoboda at agents.felk.cvut.cz
Fri Apr 16 09:11:21 CEST 2010


Marc Lehmann wrote:
> > Can't it at least be ignored? Right now, I get a 'G' echoed to my screen
> > (but not the percent sign).
> Uhm, then don't print it? Any program that uses comamnd sequences destined
> for a totally different type of terminal is seriously broken and needs to be
> fixed.

It's not like that, the program will check for TERM=linux. The linux
console understands that command, urxvt doesn't. I want to use urxvt
with TERM=linux instead the 'rxvt-unicode' or whatever it uses by
default.

Note that ESC % G is not linux specific. It just happens that linux VT
understands it. 

Urxvt is already pretty much compatible with TERM=linux (and perhaps
others, such as xterm). For example the 'civis' sequence of linux
termcap is properly handled instead of flooding the screen with
answerback messages. That's why I would like to also have ESC % at least
fully eaten, even if ignored.

> It could be done, but since that would be incompatible with the linux
> console then (which cannot switch locales) I am not sure what it would buy
> you.

This is where you're wrong, for a change, because linux VT DOES switch
its locale on that sequence. Try echoing ESC % @ and catting an utf8
file, then the same with ESC % G.

Plus Linux VT eats the whole sequence. Urxvt eats half of it.

> > > > be a no-op, since most unices run with UTF8 locale nowadays.
> > > wow, I think you are badly mistaken.
> > Okay, that's news, please enlighten me?
> If you claim you have a pink dragon in your garage, is it my job to
> disprove that? Don't think so :)

All right, I get the point. Let's reverse the implication, on systems
with utf8 locale that sequence could be a no-op. How would it be handled
on other systems I don't know, but otoh the sequence is printed only
when the locale is utf8 so that the VT switches to utf8 because by
default it is in latin1.


Michal Svoboda

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: not available
URL: <http://lists.schmorp.de/pipermail/rxvt-unicode/attachments/20100416/d1a215bb/attachment.sig>


More information about the rxvt-unicode mailing list