Re: Colour of output text

2009-08-02 Thread Albert van der Horst
In article , Jean-Michel Pichavant wrote: >Nobody wrote: >> On Fri, 10 Jul 2009 09:23:54 +, garabik-news-2005-05 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 t

Re: Colour of output text

2009-07-15 Thread Nobody
On Wed, 15 Jul 2009 17:03:30 +0200, Jean-Michel Pichavant wrote: >> Hard-coding control/escape sequences is just lame. Use the curses modules >> to obtain the correct sequences for the terminal. >> >> > As the OP I'm really interested in doing so. I currently have all my > colors hard-coded. >

Re: Colour of output text

2009-07-15 Thread Jean-Michel Pichavant
Nobody wrote: On Fri, 10 Jul 2009 09:23:54 +, garabik-news-2005-05 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

Re: Colour of output text

2009-07-10 Thread Nobody
On Fri, 10 Jul 2009 09:23:54 +, garabik-news-2005-05 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.or

Re: Colour of output text

2009-07-10 Thread Chris Rebert
On Fri, Jul 10, 2009 at 2:23 AM, wrote: > Tim Harig wrote: >> On 2009-07-09, Alex Rosslyn 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 inter

Re: Colour of output text

2009-07-10 Thread Tim Harig
On 2009-07-10, garabik-news-2005...@kassiopeia.juls.savba.sk wrote: > Tim Harig wrote: >> On 2009-07-09, Alex Rosslyn 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 do

Re: Colour of output text

2009-07-10 Thread garabik-news-2005-05
Tim Harig wrote: > On 2009-07-09, Alex Rosslyn 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

Re: Colour of output text

2009-07-09 Thread Tim Harig
On 2009-07-09, Alex Rosslyn 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 http://catb.org/esr/faqs/smart-questions.html > import os > os.system("color 17") > print "This should be white on blue" I assume that you

Colour of output text

2009-07-09 Thread Alex Rosslyn
Hi, I would like to learn a way of changing the colour of a particular part of the output text. I've tried the following: import os os.system("color 17") print "This should be white on blue" But that command changes the colour of ALL the text and the whole background. What i'm trying to do is si