add colorama example
parent
acd1c9a135
commit
f913d4fc63
@ -0,0 +1,12 @@
|
|||||||
|
#!/usr/bin/env python
|
||||||
|
from __future__ import division, print_function
|
||||||
|
|
||||||
|
from colorama import init
|
||||||
|
from colorama import Fore, Back, Style
|
||||||
|
|
||||||
|
init()
|
||||||
|
|
||||||
|
print(Fore.RED + 'some red text')
|
||||||
|
print(Back.GREEN + 'and with a green background')
|
||||||
|
print(Fore.RESET + Back.RESET + Style.BRIGHT + 'and in bright text')
|
||||||
|
print(Fore.RESET + Back.RESET + Style.RESET_ALL + 'back to normal now')
|
Loading…
Reference in New Issue