On Mon, 14 Sep 2009 04:29:57 -0500, Nick Craig-Wood wrote: > At a basic level parsing VT100 is quite easy, so you can get rid of > the VT100 control. They start with ESC, have other characters in the > middle then end with a letter (upper or lowercase), so a regexp will > make short work of them. Something like r"\x1B[^A-Za-z]*[A-Za-z]"
While this pattern is common, unfortunately there are some exceptions. Also, "vt100" has become a generic term for "terminal emulation". There is no guarantee that the OP actually wants to parse vt100 escapes and nothing else. -- http://mail.python.org/mailman/listinfo/python-list