<br><div class="gmail_quote">On Fri, Oct 29, 2010 at 10:35 AM, Tim Harig <span dir="ltr"><<a href="mailto:usernet@ilthio.net">usernet@ilthio.net</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<div class="im">On 2010-10-29, mix <<a href="mailto:tmmikolajczyk@gmail.com">tmmikolajczyk@gmail.com</a>> wrote:<br>
> Hi,<br>
><br>
> I'm wondering if there is a way in python to process a string<br>
> containing terminal escape characters. Example: Please consider the<br>
> following string:<br>
<br>
</div>Python could easily process the escape codes for any given terminal; but,<br>
in general, you would want something that works for more then a single<br>
terminal type.  This means that you need something that can do a reverse<br>
translation of the termcap/terminfo database.<br></blockquote><div><br>Actually, I believe it's become pretty rare for someone to use a terminal or terminal emulator that doesn't support vt100 escape sequences or a superset thereof.  My condolences if you try to emulate something that does those old, nasty Wyse "magic cookies".<br>
<br>
</div><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;"><div><div></div><div class="h5">--<br>
<a href="http://mail.python.org/mailman/listinfo/python-list" target="_blank">http://mail.python.org/mailman/listinfo/python-list</a><br>
</div></div></blockquote></div><br>