From: James Zhang Date: Thu, 2 Feb 2012 18:48:44 +0000 (-0500) Subject: fs_cli: fix empty prompt in nbss7 X-Git-Tag: v1.2.3^2~71^2^2~215 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=03fee3de39ef0e21034edb136c6fd4aaf57f9a57;p=thirdparty%2Ffreeswitch.git fs_cli: fix empty prompt in nbss7 --- diff --git a/libs/esl/fs_cli.c b/libs/esl/fs_cli.c index faac75a437..81ab0c696b 100644 --- a/libs/esl/fs_cli.c +++ b/libs/esl/fs_cli.c @@ -1287,11 +1287,13 @@ int main(int argc, char *argv[]) snprintf(prompt_str, sizeof(prompt_str), PROMPT_PREFIX "@%s> ", profile->name); } bare_prompt_str_len = (int)strlen(bare_prompt_str); + #if 0 if (feature_level) { - snprintf(prompt_str, sizeof(prompt_str), "%s%s%s", prompt_color, bare_prompt_str, input_text_color); + snprintf(prompt_str, sizeof(prompt_str), "%s%s%s #", prompt_color, bare_prompt_str, input_text_color); } else { - snprintf(prompt_str, sizeof(prompt_str), "%s", bare_prompt_str); + snprintf(prompt_str, sizeof(prompt_str), "%s >> ", bare_prompt_str); } + #endif connect: connected = 0; while (--loops > 0) {