Hi,
I had posted this a few hours ago, but got caught in moderation for
size. I trimmed down the pic and attached.
I am on an Ubuntu 16 workstation, in an Ubuntu terminal window, ssh'ed
to the PBX (amazon instance). You can see my term type matches yours.
I really don't know why yours doesn't work. Perhaps you can tell us
what your terminal emulator is, what you are running it on, etc.
Whatever it is, it isn't properly interpreting the escape codes for
xterm-256color. You could possibly try some different terminal types,
but this is an odd situation if the remote shell (is it remote?) can't
determine your termtype. This is pretty ancient code.
j
*Jeff LaCoursiere*
STRATUSTALK, INC. / CTO
Phone: *+1 703.496.4990 x108*
Mobile: *+1 815.546.6599*
Email: *jeff at stratustalk.com* <mailto:jeff at stratustalk.com>
Website: *https://www.stratustalk.com*
Address: *One Freedom Square
13th Floor
Reston, VA 20190*
<https://www.facebook.com/jeff.lacoursiere>
<https://linkedin.com/in/jeff-lacoursiere-884361>
<https://www.twitter.com/stratustalk>
On 5/31/20 11:42 AM, Fourhundred Thecat wrote:>> 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.
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
<http://lists.digium.com/pipermail/asterisk-users/attachments/20200531/475283a1/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: colorasterisk.png
Type: image/png
Size: 22547 bytes
Desc: not available
URL:
<http://lists.digium.com/pipermail/asterisk-users/attachments/20200531/475283a1/attachment.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: jeff.vcf
Type: text/x-vcard
Size: 321 bytes
Desc: not available
URL:
<http://lists.digium.com/pipermail/asterisk-users/attachments/20200531/475283a1/attachment.vcf>