[asterisk-users] CLI color prompt

Fourhundred Thecat 400thecat at gmx.ch
Sun May 31 09:03:07 CDT 2020


 > On 2020-05-31 15:59, Antony Stone wrote:
> On Sunday 31 May 2020 at 15:44:46, Fourhundred Thecat wrote:
>
> "%Cn[;n] - Change terminal foreground (and optional background) color to
> specified A full list of colors may be found in include/asterisk/term.h"
>
> So, try:
>
> export ASTERISK_PROMPT="%C31[%H]: "
>
> (I got 31 from reading the term.h file.)

thanks, but that does not work for me. When I use your example:

export ASTERISK_PROMPT="%C31[%H]: "

I get this prompt (voip is my hostname):

[1;31m[voip]: [1;0m



More information about the asterisk-users mailing list