[asterisk-users] CLI color prompt
Fourhundred Thecat
400thecat at gmx.ch
Sun May 31 09:26:05 CDT 2020
> On 2020-05-31 16:24, Antony Stone wrote:
> On Sunday 31 May 2020 at 16:03:07, Fourhundred Thecat wrote:
>
>> export ASTERISK_PROMPT="%C31[%H]: "
>>
>> I get this prompt (voip is my hostname):
>>
>> [1;31m[voip]: [1;0m
>
> In that case I suspect you're using a terminal which doesn't support colours.
>
> If "echo $TERM" tells you any sort of "xterm", "vt100", "crt" or "dumb" then
> you won't get colour.
my terminal definitely supports colors. I am using colored prompt in
bash/zsh.
echo $TERM gives me:
xterm-256color
More information about the asterisk-users
mailing list