<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body>
    <p>I work from a similar setup.  I ssh'ed to my personal PBX from an
      xterm window on an Ubuntu 16 workstation, your prompt seems to
      work:</p>
    <p><img src="cid:part1.390BFDFE.3A44169D@stratustalk.com" alt=""></p>
    <p><br>
    </p>
    <div class="moz-signature">
      <p style="FONT-SIZE: 10pt; MARGIN-BOTTOM: 5pt; FONT-FAMILY: ARIAL;
        MARGIN-TOP: 0pt">
      </p>
      <table style="width:480px" cellspacing="0" cellpadding="0"
        border="0">
        <tbody>
          <tr>
            <td style="FONT-SIZE: 10pt; FONT-FAMILY: Arial; WIDTH:
              200px" rowspan="2" valign="top"> <img
                src="http://www.stratustalk.com/email/logojeff.gif"
                border="0"> </td>
            <td style="FONT-SIZE: 10pt; FONT-FAMILY: Arial; WIDTH:
              280px; border-left: 1px solid #3d85c6; PADDING-LEFT: 20px"
              valign="top"> <strong style="FONT-SIZE: 18pt;
                FONT-FAMILY: Arial Black">Jeff LaCoursiere</strong><br>
              STRATUSTALK, INC. / CTO<br>
              <br>
              <table style="WIDTH: 255px" cellspacing="0"
                cellpadding="0" border="0">
                <tbody>
                  <tr>
                    <td style="FONT-SIZE: 9pt; FONT-FAMILY: Arial;
                      WIDTH: 80px; COLOR: #000000" valign="top">Phone:</td>
                    <td style="FONT-SIZE: 9pt; FONT-FAMILY: Arial;
                      WIDTH: 175px; COLOR: #000000" valign="top"><strong>+1
                        703.496.4990 x108</strong></td>
                  </tr>
                  <tr>
                    <td style="FONT-SIZE: 9pt; FONT-FAMILY: Arial;
                      WIDTH: 80px; COLOR: #000000" valign="top">Mobile:</td>
                    <td style="FONT-SIZE: 9pt; FONT-FAMILY: Arial;
                      WIDTH: 175px; COLOR: #000000" valign="top"><strong>+1
                        815.546.6599</strong></td>
                  </tr>
                  <tr>
                    <td style="FONT-SIZE: 9pt; FONT-FAMILY: Arial;
                      WIDTH: 80px; COLOR: #000000" valign="top">Email:</td>
                    <td style="FONT-SIZE: 10pt; FONT-FAMILY: Arial;
                      WIDTH: 175px" valign="top"><a style="FONT-SIZE:
                        9pt; TEXT-DECORATION: none; COLOR: #000000"
                        href="mailto:jeff@stratustalk.com"><strong>jeff@stratustalk.com</strong></a>
                    </td>
                  </tr>
                  <tr>
                    <td style="FONT-SIZE: 9pt; FONT-FAMILY: Arial;
                      WIDTH: 80px; COLOR: #000000" valign="top">Website:</td>
                    <td style="FONT-SIZE: 9pt; FONT-FAMILY: Arial;
                      WIDTH: 175px; COLOR: #000000" valign="top"> <a
                        style="FONT-SIZE: 9pt; TEXT-DECORATION: none;
                        COLOR: #000000"
                        href="https://www.stratustalk.com"><strong>https://www.stratustalk.com</strong></a></td>
                  </tr>
                  <tr>
                    <td style="FONT-SIZE: 9pt; FONT-FAMILY: Arial;
                      WIDTH: 80px; COLOR: #000000" valign="top">Address:</td>
                    <td style="FONT-SIZE: 9pt; FONT-FAMILY: Arial;
                      WIDTH: 175px; COLOR: #000000" valign="top"><strong>One
                        Freedom Square<br>
                        13th Floor<br>
                        Reston, VA 20190</strong></td>
                  </tr>
                </tbody>
              </table>
            </td>
          </tr>
          <tr>
            <td style="FONT-SIZE: 10pt; FONT-FAMILY: Arial; WIDTH:
              280px; PADDING-LEFT: 20px" valign="bottom"> <a
                href="https://www.facebook.com/jeff.lacoursiere"><img
                  src="http://www.stratustalk.com/email/fb.png"
                  border="0"></a>  <a
                href="https://linkedin.com/in/jeff-lacoursiere-884361"><img
                  src="http://www.stratustalk.com/email/ln.png"
                  border="0"></a>  <a
                href="https://www.twitter.com/stratustalk"><img
                  src="http://www.stratustalk.com/email/tt.png"
                  border="0"></a>  </td>
          </tr>
        </tbody>
      </table>
    </div>
    <div class="moz-cite-prefix">On 5/31/20 8:59 AM, Antony Stone wrote:<br>
    </div>
    <blockquote type="cite"
      cite="mid:202005311600.00081.Antony.Stone@asterisk.open.source.it">
      <pre class="moz-quote-pre" wrap="">On Sunday 31 May 2020 at 15:44:46, Fourhundred Thecat wrote:

</pre>
      <blockquote type="cite">
        <pre class="moz-quote-pre" wrap="">Hello,

how can I change the color of the asterisk prompt to red ?

I read in the wiki that I can use %Cn[;n]

<a class="moz-txt-link-freetext" href="https://wiki.asterisk.org/wiki/display/AST/Asterisk+CLI+Configuration">https://wiki.asterisk.org/wiki/display/AST/Asterisk+CLI+Configuration</a>
</pre>
      </blockquote>
      <pre class="moz-quote-pre" wrap="">
"The CLI prompt is set with the ASTERISK_PROMPT UNIX environment variable that 
you set from the Unix shell before starting Asterisk."

</pre>
      <blockquote type="cite">
        <pre class="moz-quote-pre" wrap="">I currently have this in my environment:

export ASTERISK_PROMPT="[%H]: "

which changes the prompt to hostname

Ho can I make this prompt red ?
</pre>
      </blockquote>
      <pre class="moz-quote-pre" wrap="">
"%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.)


Regards,


Antony.

</pre>
    </blockquote>
  </body>
</html>