Colour of output text

Chris Rebert clp2 at rebertia.com
Fri Jul 10 15:11:12 EDT 2009


On Fri, Jul 10, 2009 at 2:23 AM,
<garabik-news-2005-05 at kassiopeia.juls.savba.sk> wrote:
> Tim Harig <usernet at ilthio.net> wrote:
>> On 2009-07-09, Alex Rosslyn <black.linen99 at gmail.com> wrote:
>>> I would like to learn a way of changing the colour of a particular
>>> part of the output text. I've tried the following
>
>> On Unix operating systems this would be done through the curses interface:
>>
>> http://docs.python.org/library/curses.html
>
> Or using ANSI colour codes:
>
> colours = {
<snip>
>            'beep'       :    "\007",

Sound is a color? Maybe if you have synaesthesia...

Cheers,
Chris
-- 
http://blog.rebertia.com



More information about the Python-list mailing list