The colorama module (version 0.4.1) allows us to easily create colored Terminal text. We're going to use this to highlight good and bad events to the user. For example, when a plugin completes without errors, we display that with a green font. Similarly, we will print encountered errors in red. The colorama module can be installed with pip:
pip install colorama==0.4.1
Traditionally, printing colored text to the Terminal is achieved by a series of escape characters on Linux or macOS systems. This, however, won't work for Windows operating systems. The following are examples of ANSI escape characters being used to create colored text in Linux or macOS Terminals:
The color format is the escape character, \033, followed by an open bracket and then the desired color code. We can change the background color in addition to the foreground color and even do both at...