terminal character control clean up
Christopher Koppler
klapotec at chello.at
Wed Oct 1 07:54:04 EDT 2003
Eric Texier <etexier at pdi.com> wrote in message news:<UOneb.158$1q7.33967137 at newssvr21.news.prodigy.com>...
> On linux, I am parsing the output of an executable
> that's returning color and font information, thing like
> \x1b[1m\x1b[31m.
>
> It's there a module that will help me clean up those control,
> or do I have to do it with regular expression.
> Thanks for your help
take a look at Twisted's AnsiParser:
http://twisted.sourceforge.net/TwistedDocs-1.0.3/api/public/twisted.conch.ui.ansi.AnsiParser.html
--
Christopher
More information about the Python-list
mailing list