Sponsor: VoiceMeUp - Corporate & Wholesale VoIP Services

VoIP Mailing List Archives
Mailing list archives for the VoIP community
 SearchSearch 

[asterisk-users] asterisk prompt


 
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> Asterisk Users
View previous topic :: View next topic  
Author Message
martin.vegter at aol.com
Guest





PostPosted: Tue Nov 25, 2014 10:45 am    Post subject: [asterisk-users] asterisk prompt Reply with quote

Hello,

I am trying to set up color prompt. In the documentation I have found this:

%Cn[;n] Change terminal foreground (and optional background) color to
specified. A full list of colors may be found in include/asterisk/term.h*

But nowhere could I find what format the color code should be. I have
tried all possible permutations, none of them works:

ASTERISK_PROMPT="%Cn[COLOR_BLUE] %H: " asterisk -vvvvvvr
ASTERISK_PROMPT="%Cn[32;128] %H: " asterisk -vvvvvvr
ASTERISK_PROMPT="%Cn[32;] %H: " asterisk -vvvvvvr
ASTERISK_PROMPT="%Cn[;32] %H: " asterisk -vvvvvvr
ASTERISK_PROMPT="%Cn[;COLOR_CYAN] %H: " asterisk -vvvvvvr
ASTERISK_PROMPT="%Cn[32|128] %H: " asterisk -vvvvvvr

can somebody please tell me how to make my asterisk prompt red, for example?
__________________________________________________________________________

Also, I would like to piggyback a second question:

I am using Asterisk 11.13 on Debian Wheezy. When I am in asterisk CLI, I
can use command history and readline functions such as CTRL+r to search.
But not all functions are available. For example, the alternate mappings
for "page up" and "page down" to search the history do not work. They
work in everything else (bash, mysql, ..)

$ cat /etc/inputrc
"\e[5~": history-search-forward
"\e[6~": history-search-backward

is there a way to make it work in asterisk ?

thanks,
Martin


--
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users
Back to top
Display posts from previous:   
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> Asterisk Users All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group

VoiceMeUp - Corporate & Wholesale VoIP Services