By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
445,870 Members | 1,189 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 445,870 IT Pros & Developers. It's quick & easy.

terminal character control clean up

P: n/a
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

Jul 18 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
Eric Texier <et*****@pdi.com> wrote in message news:<UO********************@newssvr21.news.prodig y.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/Twist...nsiParser.html

--
Christopher
Jul 18 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.