mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-08-13 01:26:58 +00:00
fix color coding to be OS appropriate
This commit is contained in:
@@ -903,20 +903,21 @@ static const char *basic_gets(int *cnt)
|
||||
}
|
||||
|
||||
static const char *banner =
|
||||
" _____ ____ ____ _ ___ \n"
|
||||
" | ___/ ___| / ___| | |_ _| \n"
|
||||
" | |_ \\___ \\ | | | | | | \n"
|
||||
" | _| ___) | | |___| |___ | | \n"
|
||||
" |_| |____/ \\____|_____|___| \n"
|
||||
"\n"
|
||||
"*******************************************************\n"
|
||||
"* Anthony Minessale II, Ken Rice, *\n"
|
||||
"* Michael Jerris, Travis Cross *\n"
|
||||
"* FreeSWITCH (http://www.freeswitch.org) *\n"
|
||||
"* Paypal Donations Appreciated: paypal@freeswitch.org *\n"
|
||||
"* Brought to you by ClueCon http://www.cluecon.com/ *\n"
|
||||
"*******************************************************\n"
|
||||
"\n";
|
||||
".=======================================================.\n"
|
||||
"| _____ ____ ____ _ ___ |\n"
|
||||
"| | ___/ ___| / ___| | |_ _| |\n"
|
||||
"| | |_ \\___ \\ | | | | | | |\n"
|
||||
"| | _| ___) | | |___| |___ | | |\n"
|
||||
"| |_| |____/ \\____|_____|___| |\n"
|
||||
"| |\n"
|
||||
".=======================================================.\n"
|
||||
"| Anthony Minessale II, Ken Rice, |\n"
|
||||
"| Michael Jerris, Travis Cross |\n"
|
||||
"| FreeSWITCH (http://www.freeswitch.org) |\n"
|
||||
"| Paypal Donations Appreciated: paypal@freeswitch.org |\n"
|
||||
"| Brought to you by ClueCon http://www.cluecon.com/ |\n"
|
||||
".=======================================================.\n"
|
||||
"\n";
|
||||
|
||||
static const char *inf = "Type /help <enter> to see a list of commands\n\n\n";
|
||||
|
||||
@@ -924,10 +925,16 @@ static void print_banner(FILE *stream)
|
||||
{
|
||||
#include <cc.h>
|
||||
|
||||
fprintf(stream,
|
||||
"%s%s%s%s%s%s\n%s\n",
|
||||
ESL_SEQ_DEFAULT_COLOR,
|
||||
ESL_SEQ_FYELLOW, ESL_SEQ_BBLUE,
|
||||
banner,
|
||||
cc, ESL_SEQ_DEFAULT_COLOR, inf);
|
||||
|
||||
|
||||
#ifndef WIN32
|
||||
fprintf(stream, "%s%s%s\n%s", output_text_color, banner, cc, inf);
|
||||
#else
|
||||
fprintf(stream, "%s%s\n%s", banner, cc, inf);
|
||||
fprintf(stream, "%s", output_text_color);
|
||||
#endif
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user