The readline module (used e.g. in IPython)
http://sourceforge.net/project/showfiles.php?group_id=82407
provides the Console.py
script and in my own version of it, the (extended)
Console() class supports any ANSI escape
sequences of the form ESC[#m and ESC[#,#m ,
making it possible to set any by con
if you are talking about writing text console program only , for
Windows, then just use the color command- but you will need a handle to
that console window-
C:\>help color
Sets the default console foreground and background colors.
COLOR [attr]
attrSpecifies color attribute of console
AFAIK, the cmd.exe program on Win2K/XP doesn't support ANSI escape
sequences. There are various other options on windows but they
probably won't work on Linux.
http://newcenturycomputers.net/projects/wconio.html
http://effbot.org/zone/console-handbook.htm
--
http://mail.python.org/mailman/listi
To convert ansi escape sequences into text colors you need a terminal
that understands what you are doing. Linux does this by default; dos
and windows do not. You need to have an extra program in memory. The
conventional approach is the "ANSI.SYS" driver which probably still
ships with Windows (
i have a ansi.py file that i use in LINUX to change the text color to
STDOUT when i use the "print" function...but when i move this ansi.py
file over the windows...it does not work
is there a version of ansi.py i can use for windows/linux
please help
--
http://mail.python.org/mailman/listin