"Scott Nelson" <sirg...@gmail.com> wrote
myself and I recently found some C code on the web [2] that does this and
I
translated that into to Python and pywin. It can be done in about 4
lines
of Python.
Yes, its much easier than I expected. I had never seen the
SetConsoleTextAttribute API call before nor the GetStdHandle
for accessing stdout. Thanks for the link.
(While writing this email, I also discovered that you can control the
cursor
position in a win32 console with pywin! Fun!)
I'd still go for wconio for that kind of stuff - including
changing colors...
http://newcenturycomputers.net/projects/wconio.html
Alan G
_______________________________________________
Tutor maillist - Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor