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
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
> >>>
> 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
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