fs_cli: fix empty prompt in nbss7

This commit is contained in:
James Zhang 2012-02-02 13:48:44 -05:00
parent 34b0f8ad74
commit 03fee3de39
1 changed files with 4 additions and 2 deletions

View File

@ -1287,11 +1287,13 @@ int main(int argc, char *argv[])
snprintf(prompt_str, sizeof(prompt_str), PROMPT_PREFIX "@%s> ", profile->name); snprintf(prompt_str, sizeof(prompt_str), PROMPT_PREFIX "@%s> ", profile->name);
} }
bare_prompt_str_len = (int)strlen(bare_prompt_str); bare_prompt_str_len = (int)strlen(bare_prompt_str);
#if 0
if (feature_level) { 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 { } else {
snprintf(prompt_str, sizeof(prompt_str), "%s", bare_prompt_str); snprintf(prompt_str, sizeof(prompt_str), "%s >> ", bare_prompt_str);
} }
#endif
connect: connect:
connected = 0; connected = 0;
while (--loops > 0) { while (--loops > 0) {