Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Colorizing Windows command line output from PHP

Tags:

People also ask

How do you colorize 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.

Can CMD display colors?

Color is an inbuilt command found inside the Windows Command Processor (cmd.exe), that is used for changing the colors for the console's foreground and background. By default, the console has white foreground color and black background color (07 color code).


To output colored text in bash, you use ANSI escape sequences.

How do you output colored text on a Windows command line, specifically from PHP?