Open aj3sh opened 10 months ago
Tested on Windows 11 Command Prompt, Power Shell, and Git bash: Working fine.
Tested on Windows 10 Command Prompt: Not working (displays the color character \033[0m
).
I suggest to use rich
. Although it adds a dependency, it makes the code much cleaner and it's a common dependency that is used in many python projects.
Adding color to CLI messages would be helpful for users to distinguish between error, success, or normal messages. Let's attempt to implement this without using any additional dependencies initially; if that's not possible, we can explore and discuss the packages to use.
Here is my POC for the color message (tested on Mac's terminal and iterm):
Ref: https://stackoverflow.com/questions/287871/how-do-i-print-colored-text-to-the-terminal