26
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?
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?
It appears that using plain escape codes won't work on the Windows command prompt. The answers on the other SO questions related to this say that you need to use the Win32 API. A Win32 API library does exist for PHP, however the documentation does have a large red section warning that it is experimental. YMMV.