support for ESC % G
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
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
Note that ESC % G is not linux specific. It just happens that linux VT
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
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.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Size: 198 bytes
Desc: not available
More information about the rxvt-unicode