Printing with colors in a portable way

Grant Edwards grante at visi.com
Thu Jul 30 23:02:17 EDT 2009


On 2009-07-30, Robert Dailey <rcdailey at gmail.com> wrote:
> Anyone know of a way to print text in Python 3.1 with colors in a
> portable way? In other words, I should be able to do something like
> this:
>
> print_color( "This is my text", COLOR_BLUE )
>
> And this should be portable (i.e. it should work on Linux, Mac,
> Windows).

Generating postscript or PDF is the only remotely portable way
to print anything.

-- 
Grant




More information about the Python-list mailing list