nghung270192 / colorama

Automatically exported from code.google.com/p/colorama
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

Unable to patch termcolor to use colorama #32

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
I tried to add the next lines to termcolor.py, just after import os in order to 
enable it to work on 

try:
    import colorama
    colorama.init()
except:
    print "oops, no colorama"

The problem is that it will not enable termcolor to print colored output, ANSI 
escapes are seen on screen instead.

Original issue reported on code.google.com by sorin.sb...@gmail.com on 1 Dec 2011 at 6:02

GoogleCodeExporter commented 9 years ago
Hey, thanks for the report, but you didn't finish the first sentence: In order 
to enable it to work on what? :-)

Original comment by tart...@gmail.com on 1 Dec 2011 at 10:17

GoogleCodeExporter commented 9 years ago
Mainly I was looking to make termcolor works on Windows by importing colorama 
inside termcolor module. Sorry but google code doesn't allow to edit the ticket.

Original comment by sorin.sb...@gmail.com on 2 Dec 2011 at 2:47

GoogleCodeExporter commented 9 years ago
Ahar! I understand better now. Thanks for helping me get up to speed, but I'm 
still a little bit hazy on precisely what we're aiming for.

If an application is using termcolor, then the application can call 
colorama.init() and then it will work on Windows.

So who are the beneficiaries of this proposed change?

Sorry to be dumb. Let me know your thoughts. Cheers!

Original comment by tart...@gmail.com on 2 Dec 2011 at 3:30

GoogleCodeExporter commented 9 years ago
Please close the ticket / Invalid.

Original comment by sorin.sb...@gmail.com on 2 Dec 2011 at 6:53

GoogleCodeExporter commented 9 years ago

Original comment by tart...@gmail.com on 4 Dec 2011 at 11:57