I created a little script for doing stdout coloring for me a while back. Maybe this will get you closer to what you are looking for. It's kinda hackish, but it works.
http://code.google.com/p/python-stdout-colors/ -Alex Goretoy http://www.goretoy.com On Wed, Feb 18, 2009 at 10:22 PM, srinivasan srinivas < sri_anna...@yahoo.co.in> wrote: > Hi, > Is it possible to apply more than one formatting to a string? > For ex: the string 'test' has to be underlined and it should be bold. How > to do that? > > Thanks, > Srini > ------------------------------ > *From:* geremy condra <c...@openmigration.net> > *To:* python-list@python.org > *Sent:* Wednesday, 18 February, 2009 10:04:34 AM > *Subject:* Re: Python Module for console text formatting? > > You can insert those codes just like you would any other character. If > there's enough interest I can whip up a wrapper library for you. > > http://www.linux.gr/cgi-bin/man2html?console_codes+4 > > On Tue, Feb 17, 2009 at 11:19 PM, srinivasan srinivas < > sri_anna...@yahoo.co.in> wrote: > >> >> Hi, >> Does anyone know any python module other than 'ConsoleFormat0.1.1' used to >> format text on console? >> For example, printing bold characters on console. >> >> Thanks, >> Srini >> >> >> Did you know? You can CHAT without downloading messenger. Go to >> http://in.webmessenger.yahoo.com/ >> -- >> http://mail.python.org/mailman/listinfo/python-list >> > > > > -- > OpenMigration LLC- Open Source solutions for your business. Visit us at > http://OpenMigration.net <http://openmigration.net/>. > > ------------------------------ > Add more friends to your messenger and enjoy! Invite them > now.<http://in.rd.yahoo.com/tagline_messenger_6/*http://messenger.yahoo.com/invite/> > > -- > http://mail.python.org/mailman/listinfo/python-list > >
-- http://mail.python.org/mailman/listinfo/python-list