]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
fs_cli: fix empty prompt in nbss7
authorJames Zhang <jzhang@sangoma.com>
Thu, 2 Feb 2012 18:48:44 +0000 (13:48 -0500)
committerJames Zhang <jzhang@sangoma.com>
Thu, 2 Feb 2012 18:48:44 +0000 (13:48 -0500)
libs/esl/fs_cli.c

index faac75a437c0c2e0c7f52424187644db0ef545c0..81ab0c696b29ea9acc5ce1591a5442fe9b00b3ef 100644 (file)
@@ -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) {