Asterisk Prompt

Home » Asterisk Users » Asterisk Prompt
Asterisk Users No Comments

Hello,

I am trying to set up color prompt. In the documentation I have found this:

%Cn[;n] Change terminal foreground (and optional background) color to
specified. A full list of colors may be found in include/asterisk/term.h*

But nowhere could I find what format the color code should be. I have tried all possible permutations, none of them works:

ASTERISK_PROMPT=”%Cn[COLOR_BLUE] %H: ” asterisk -vvvvvvr
ASTERISK_PROMPT=”%Cn[32;128] %H: ” asterisk -vvvvvvr
ASTERISK_PROMPT=”%Cn[32;] %H: ” asterisk -vvvvvvr
ASTERISK_PROMPT=”%Cn[;32] %H: ” asterisk -vvvvvvr
ASTERISK_PROMPT=”%Cn[;COLOR_CYAN] %H: ” asterisk -vvvvvvr
ASTERISK_PROMPT=”%Cn[32|128] %H: ” asterisk -vvvvvvr

can somebody please tell me how to make my asterisk prompt red, for example?