Make quick ANSI formats to beautify terminal output
WebPage: bruneo32.github.io/ANSI-Project
Installation
- Download ansi.py.zip and extract it into the Python folder *(for example:
C:\Python39\
)*
- Import it in your Python Script:
Documentation
Check out the documentation of the ANSI-Project for Python
Quick Example
import ansi
print("Normal "+
ansi.BOLD+ "BOLD "+ ansi.RESET+
ansi.ITALIC+ "italic "+ ansi.RESET+
ansi.UNDER+ "UnderLine"+ ansi.RESET+" "+
ansi.HIDE+ "Hide "+ ansi.RESET+
ansi.STRIKE+ "Strike"+ ansi.RESET+
"\n\n")
for i in range(int(256/4)):
print(ansi.RESET)
for i in range(int(256/4)):
print(ansi.RESET)
for i in range(int(256/4)):
print(ansi.RESET)
for i in range(int(256/4)):
print(ansi.RESET)
def BK_RGB(r, g, b)
Specify the Background color in RGB.
Definition: __init__.py:130