Skip to content

Commit

Permalink
add: colorma library experimentation
Browse files Browse the repository at this point in the history
Learning about the concept of ANSI and mac and unix systems with windows32 api call.
  • Loading branch information
NitkarshChourasia committed Jan 9, 2024
1 parent 15b058b commit 56d515c
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions colorma_as_color.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
import colorama as color


from colorama import Fore, Back, Style

print(Fore.RED + "some red text")
print(Back.GREEN + "and with a green background")
print("So any text will be in green background?")

print("So is it a wrapper of some sort?")
print("dark_angel wasn't using it in her code.")
print("she was just being using direct ANSI codes.")
print(Style.RESET_ALL)
print(Fore.BRIGHT_RED + "some bright red text")
print(Back.WHITE + "and with a white background")
print("Will need to study about what is ANSI codes.")
print(Style.DIM + "and in dim text")
print(Style.RESET_ALL)
print("back to normal now")


# …or, Colorama can be used in conjunction with existing ANSI libraries such as the venerable Termcolor the fabulous Blessings, or the incredible _Rich.

0 comments on commit 56d515c

Please sign in to comment.