<div dir="ltr">Try this to get a real "traditional" xterm:<div><br></div><div>xterm +k8 +lc -en C -xrm 'XTerm*locale: false' -xrm 'XTerm*utf8: false' -e 'echo -e "\x9b44mHello... \x9b0;1m\x9b30Cworld!"; sleep 10'<br>
</div><div><br></div><div>If this conversation goes off into a long tangent about X resources and *their* pathologies, it will make my Thursday!</div><div><br></div><div>Cheers,</div><div>Keith</div><div class="gmail_extra">
<br><div class="gmail_quote">On Thu, Mar 20, 2014 at 4:50 PM, Vincent Lefevre <span dir="ltr"><<a href="mailto:vincent-mosh@vinc17.net" target="_blank">vincent-mosh@vinc17.net</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="">On 2014-03-20 16:17:37 +0100, Keith Winstein wrote:<br>
> Unfortunately, old programs were already broken by the switch from<br>
> octet-based ANSI terminal emulators to UTF-8-based ANSI terminal emulators.<br>
> The switch to UTF-8 was a breaking change to the terminal control language.<br>
<br>
</div>I don't think so. Well, not in a significant way in practice.<br>
<div class=""><br>
> Compare:<br>
><br>
> LC_ALL=C xterm -e 'echo -e "\x9b44mHello... \x9b0;1m\x9b30Cworld!"; sleep<br>
> 10'<br>
><br>
> [image: Inline image 1]<br>
><br>
> (The "LC_ALL=C" puts xterm in old-fashioned octet-based mode.)<br>
><br>
> to the same command, run in a UTF-8 terminal emulator:<br>
><br>
> LC_ALL=en_US.UTF-8 xterm -e 'echo -e "\x9b44mHello...<br>
> \x9b0;1m\x9b30Cworld!"; sleep 10'<br>
><br>
> [image: Inline image 2]<br>
<br>
</div>On my machine there are just cosmetic differences.<br>
See attached images.<br>
<div class=""><br>
> The escape sequence (using C1 CSI) works fine in an "original" xterm, but<br>
> the switch to UTF-8 breaks this application.<br>
<br>
</div>I think that they are disabled in my xterm, as they are useless in<br>
practice. IIRC, I had problems with them even in the pre-UTF-8 time,<br>
because these code points were used by Microsoft so that one could<br>
find them in text files in practice, and interpreting them as<br>
control characters was a bad idea.<br>
<div class="HOEnZb"><div class="h5"><br>
--<br>
Vincent Lefèvre <<a href="mailto:vincent@vinc17.net">vincent@vinc17.net</a>> - Web: <<a href="https://www.vinc17.net/" target="_blank">https://www.vinc17.net/</a>><br>
100% accessible validated (X)HTML - Blog: <<a href="https://www.vinc17.net/blog/" target="_blank">https://www.vinc17.net/blog/</a>><br>
Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon)<br>
</div></div><br>_______________________________________________<br>
mosh-users mailing list<br>
<a href="mailto:mosh-users@mit.edu">mosh-users@mit.edu</a><br>
<a href="http://mailman.mit.edu/mailman/listinfo/mosh-users" target="_blank">http://mailman.mit.edu/mailman/listinfo/mosh-users</a><br>
<br></blockquote></div><br></div></div>