On 2005-04-04, GujuBoy <[EMAIL PROTECTED]> wrote:

> so i am writing a program in Python and i want to print out a few
> statements in Different colors
>
> for example "Print hello world in RED, and "GOOD BYE in blue" "
>
> how can i do this...

Depends on what you're printing on.

tty?
    curses 
    os.popen('tput')

printer?    
    reportlab

> and hopefully without including any external modules.

I suppose you can pick an output device and hard-wire the
escape sequences into your code.

-- 
Grant Edwards                   grante             Yow!  SHHHH!! I hear SIX
                                  at               TATTOOED TRUCK-DRIVERS
                               visi.com            tossing ENGINE BLOCKS into
                                                   empty OIL DRUMS...
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to