[asterisk-users] CLI color prompt

Fourhundred Thecat 400thecat at gmx.ch
Sun May 31 11:42:58 CDT 2020


> On 2020-05-31 18:39, Ira wrote:
>
> I typed this at the terminal prompt:  export ASTERISK_PROMPT="%C31[%H]: "
>
> Typing at the same place:  echo $TERM  returns xterm
>
> And now I have colored prompts at the Asterisk command line, so I can
> assure you it can work. Kind of cool, 14 years using Asterisk and
> because of your question, I now have colored prompts.
>
> Do I have to do something to make sure that ASTERISK_PROMPT lives
> through a reboot?

I would add the export to .bashrc/.zshrc or whatever shell you are using

why does it not work for me?
My terminal clearly supports 256 colors.



More information about the asterisk-users mailing list