The goal is to keep the color meaningful and useful to help the user visually scan the content and give them feedback of what is going on. When should colors be used in a command line application? When they help the readability of the content (and are not used as pure decoration).
How to use color command in cmd?
To set the default Command Prompt window color, select the upper-left corner of the Command Prompt window, select Defaults, select the Colors tab, and then select the colors that you want to use for the Screen Text and Screen Background.
What do you think is the function or application of colors?
Color can make us feel a certain way when we see it depending on whether we like that particular color or not. We can also associate memories and thoughts with certain colors. It is a powerful communication tool and can be used to signal action, influence mood, and even influence physiological reactions.