<div dir="ltr">Try this to get a real &quot;traditional&quot; xterm:<div><br></div><div>xterm +k8 +lc -en C -xrm &#39;XTerm*locale: false&#39; -xrm &#39;XTerm*utf8: false&#39; -e &#39;echo -e &quot;\x9b44mHello... \x9b0;1m\x9b30Cworld!&quot;; sleep 10&#39;<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">&lt;<a href="mailto:vincent-mosh@vinc17.net" target="_blank">vincent-mosh@vinc17.net</a>&gt;</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>
&gt; Unfortunately, old programs were already broken by the switch from<br>
&gt; octet-based ANSI terminal emulators to UTF-8-based ANSI terminal emulators.<br>
&gt; The switch to UTF-8 was a breaking change to the terminal control language.<br>
<br>
</div>I don&#39;t think so. Well, not in a significant way in practice.<br>
<div class=""><br>
&gt; Compare:<br>
&gt;<br>
&gt; LC_ALL=C xterm -e &#39;echo -e &quot;\x9b44mHello... \x9b0;1m\x9b30Cworld!&quot;; sleep<br>
&gt; 10&#39;<br>
&gt;<br>
&gt; [image: Inline image 1]<br>
&gt;<br>
&gt; (The &quot;LC_ALL=C&quot; puts xterm in old-fashioned octet-based mode.)<br>
&gt;<br>
&gt; to the same command, run in a UTF-8 terminal emulator:<br>
&gt;<br>
&gt; LC_ALL=en_US.UTF-8 xterm -e &#39;echo -e &quot;\x9b44mHello...<br>
&gt; \x9b0;1m\x9b30Cworld!&quot;; sleep 10&#39;<br>
&gt;<br>
&gt; [image: Inline image 2]<br>
<br>
</div>On my machine there are just cosmetic differences.<br>
See attached images.<br>
<div class=""><br>
&gt; The escape sequence (using C1 CSI) works fine in an &quot;original&quot; xterm, but<br>
&gt; 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 &lt;<a href="mailto:vincent@vinc17.net">vincent@vinc17.net</a>&gt; - Web: &lt;<a href="https://www.vinc17.net/" target="_blank">https://www.vinc17.net/</a>&gt;<br>
100% accessible validated (X)HTML - Blog: &lt;<a href="https://www.vinc17.net/blog/" target="_blank">https://www.vinc17.net/blog/</a>&gt;<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>