Topic: readline and printing color text
I am running CentOS 7 with PHP 7.2. Not sure if this is configuration, but when I compile php manually with --with-readline, I can run:
<?php
readline("\033[0;31maaa\033[0m");
?>
and it prints the text "aaa" in red.
When I do it with the PHP 7.2 RPM's, it prints:
[0;31maaa[0m
Comparing phpinfo(), my manual compile shows:
Readline Support => enabled
Readline library => 6.2
and the RPM shows:
Readline Support => enabled
Readline library => EditLine wrapper
Is there a way to use the RPM's and have the text print in color?
Thanks again for your help.
Ryan