add colorama example
This commit is contained in:
parent
acd1c9a135
commit
f913d4fc63
1 changed files with 12 additions and 0 deletions
12
colorama_test.py
Executable file
12
colorama_test.py
Executable file
|
@ -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…
Add table
Add a link
Reference in a new issue