[GRASS-user] color for stdout print output

Johannes Radinger JRadinger at gmx.at
Thu Apr 28 03:45:02 EDT 2011


Hej,

does anyone know how to color the print-output in the
wxGUI command output? What is the right command in python?

I tried print '\033[1;32mGreen like Grass\033[1;m' but
that isn't working (http://www.siafoo.net/snippet/88).

/Johannes

-------- Original-Nachricht --------
> Datum: Wed, 27 Apr 2011 11:01:56 +0200
> Von: Martin Landa <landa.martin at gmail.com>
> An: Johannes Radinger <JRadinger at gmx.at>
> CC: grass-user at lists.osgeo.org
> Betreff: Re: [GRASS-user] color for stdout print output

> Hi,
> 
> 2011/4/27 Johannes Radinger <JRadinger at gmx.at>:
> > It'd be nice e.g if a command like 'print "Script processed
> succesfully"' is printed in green in the stdout of the GRASS command console.
> 
> do you mean terminal or wxGUI command output?
> 
> Martin
> 
> -- 
> Martin Landa <landa.martin gmail.com> * http://geo.fsv.cvut.cz/~landa

-- 
NEU: FreePhone - kostenlos mobil telefonieren und surfen!			
Jetzt informieren: http://www.gmx.net/de/go/freephone


More information about the grass-user mailing list