AnsiPrint - Coloured text made easy.
ENTER THIS IN THE CONSOLE:
import os os.system("pip install AnsiPrint")
USE IT LIKE THIS IN THE CODE:
CHECK IT OUT ON PYPI: AnsiPrint
Note: For people who don't like reading the docs, this package is just colorama and termcolor squished into two functions.
ansiprint("This is red!","red") ansiprint("This is blue!","blue") ansiprint("This is white and ends with \"!\"",end="!")
print(ansi("red") + "This is red!" + ansi("reset")) print(ansi("blue") + "This is blue!" + ansi("reset")) print(ansi(34) + "This is the ansi \"34\"!" + ansi("reset")) # ansi codes are in the ansi chart below
print("This message isn't seen because the console is cleared after!") clear() print("This message is seen because it is after the console is cleared!")
This was made for the community; use it in any project you want, no credit needed :)
@Warhawk947 visit count: 3