> 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
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;0mIn 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. Regards, Antony. -- Late in 1972 President Richard Nixon announced that the rate of increase of inflation was decreasing. This was the first time a sitting president used a third derivative to advance his case for re-election. - Hugo Rossi, Notices of the American Mathematical Society Please reply to the list; please *don't* CC me.
I'm pretty sure that means your are using a non-color capable terminal, or your termtype variable is incorrect. What are you using for a terminal emulator? *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 9:03 AM, Fourhundred Thecat wrote:> > 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 >-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20200531/574bf947/attachment.html> -------------- 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/574bf947/attachment.vcf>
> 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
> On 2020-05-31 16:25, Jeff LaCoursiere wrote: > I'm pretty sure that means your are using a non-color capable terminal, > or your termtype variable is incorrect. What are you using for a > terminal emulator?my terminal supports colors, I am using colored prompt in bash/zsh already. I made a screenshot: https://paste.pics/d1eb46bac0a8d06d645230225191615e