Coloring print lines

Mark Wilson mwilson13 at cox.net
Mon Aug 25 16:10:31 EDT 2003


On Monday, August 25, 2003, at 09:22 AM, Sami Viitanen wrote:

> Hello,
>
> Is there an easy way to make script print text with differents colors 
> to
> screen (shell)?
>
> I mean a script that can for example print lines in red if some error 
> occurs
> in executing
> some information..
>
> --SV
>
> ----Thanks in advance.


You might try porting Ian Macdonald's GPL licensed program "Arbitrary 
Command Output Colourer" from Ruby to Python. The program is described 
here:

http://www.caliban.org/ruby/acoc.shtml

Regards,

Mark






More information about the Python-list mailing list