<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /></head><body style='font-size: 10pt; font-family: Verdana,Geneva,sans-serif'>
<p>The difference is that iterating ColorString used to give you 1-character ColorString objects, in Python 3 it gives you str objects, causing the double escaping.</p>
<p id="reply-intro">On 2022-10-06 13:47, Adrian Chaves wrote:</p>
<blockquote type="cite" style="padding: 0 0.4em; border-left: #1010ff 2px solid; margin: 0">
<div id="replybody1">
<div style="font-size: 10pt; font-family: Verdana,Geneva,sans-serif;">
<p>I have restored it and instead removed ColorString.join, which was the one causing the escaping of the color-related tags.</p>
<p>I am not 100% sure that is the right solution, though. I do not fully understand why Python 2 was working OK here. Will look into it.</p>
<p id="v1reply-intro">On 2022-10-05 22:49, Chusslove Illich wrote:</p>
<blockquote style="padding: 0 0.4em; border-left: #1010ff 2px solid; margin: 0;">
<div class="v1pre" style="margin: 0; padding: 0; font-family: monospace;"><span style="white-space: nowrap;">Hi Adrian,</span><br /><br /><span style="white-space: nowrap;">As you might be gathering from other replies, removing that _escape</span><br /><span style="white-space: nowrap;">should not be done. So regarding the issue with terminal coloring, how</span><br /><span style="white-space: nowrap;">is the Python 2 version behaving on the same example? If it behaves</span><br /><span style="white-space: nowrap;">differently, or even as expected, the problem must lie somewhere else.</span></div>
</blockquote>
<p><br /></p>
</div>
</div>
</blockquote>
<p><br /></p>

</body></html>