Ask about general coding issues or problems here.
2 posts • Page 1 of 1
There's no way to do it directly. You could spoof it by echoing your prompt manually then having a blank "prompt" in your readline handler. The example below shows how it works with readline().
Code: Select all
echo "\e[0m\e[34m Wacky coloured prompt: \e[0m"; $foo = readline('');