Re: [Tutor] Problem using termcolor and colorama

2018-11-15 Thread Peter Otten
John Blower wrote: > I try to create colour text by using these two modules , only returns the > colour code, no colour text. How to solve this problem. > import termcolor import colorama colorama.init() termcolor.cprint('Hello World','red') > [31mHello World[0m Start with

Re: [Tutor] Problem using termcolor and colorama

2018-11-15 Thread Steven D'Aprano
On Thu, Nov 15, 2018 at 01:18:16PM +, John Blower wrote: > I try to create colour text by using these two modules , only returns the > colour code, no colour text. > How to solve this problem. Use a terminal that supports colour codes. > >>> import termcolor > >>> import colorama > >>>

Re: [Tutor] Problem using termcolor and colorama

2018-11-15 Thread David Rock
> On Nov 15, 2018, at 07:18, John Blower wrote: > > I try to create colour text by using these two modules , only returns the > colour code, no colour text. > How to solve this problem. > import termcolor import colorama colorama.init() termcolor.cprint('Hello

[Tutor] Problem using termcolor and colorama

2018-11-15 Thread John Blower
I try to create colour text by using these two modules , only returns the colour code, no colour text. How to solve this problem. >>> import termcolor >>> import colorama >>> colorama.init() >>> termcolor.cprint('Hello World','red') [31mHello World[0m Sent from