Hi Martin,

not exactly what you need, but if you use MacOS with iterm, you can use regex 
to colorize your output. 

I colorzied up and down interface status in a very basic way:

https://abload.de/img/bildschirmfoto2018-03j4ov6.png

Regards
Alex




Martin T <[email protected]> schrieb:
>Hi!
>
>When I start an ash shell and use terminal escape codes, then string
>&quot;Hello&quot; is printed in red as expected:
>
>user@vMX&gt; start shell sh
>$ echo $TERM
>screen
>$ echo -e &quot;\e[31mHello\e[0m&quot;
>Hello
>$
>
>Is it possible to print colors in Junos cli? My cli terminal type is
>also &quot;screen&quot; according to &quot;show cli&quot; command. I tried 
>with few
>jcs:output functions like:
>
>expr jcs:output(&quot;\\\e[31mHello\\\e[0m\s&quot;);
>expr jcs:output(&quot;\e[31mHello\e[0m&quot;);
>
>..and with &lt;output&gt; elements like:
>
>&lt;output&gt; &quot;\\\e[31mHello\\\e[0m&quot;;
>&lt;output&gt; &#39;&quot;\\\e[31mHello\\\e[0m&quot;&#39;;
>
>
>I guess it is not possible to use colors in SLAX scripts?
>
>
>thanks,
>Martin
>_______________________________________________
>juniper-nsp mailing list [email protected]
>https://puck.nether.net/mailman/listinfo/juniper-nsp
>
_______________________________________________
juniper-nsp mailing list [email protected]
https://puck.nether.net/mailman/listinfo/juniper-nsp

Reply via email to