提交 712853d9 authored 作者: Travis Cross's avatar Travis Cross

fs_cli: do not print extra newline on function key press

上级 5d1e9502
...@@ -101,9 +101,7 @@ static unsigned char console_fnkey_pressed(int i) ...@@ -101,9 +101,7 @@ static unsigned char console_fnkey_pressed(int i)
const char *c; const char *c;
assert((i > 0) && (i <= 12)); assert((i > 0) && (i <= 12));
c = global_profile->console_fnkeys[i - 1]; c = global_profile->console_fnkeys[i - 1];
/* This new line is necessary to avoid output to begin after the ">" of the CLI's prompt */
printf("%s\n", c); printf("%s\n", c);
printf("\n");
if (c == NULL) { if (c == NULL) {
esl_log(ESL_LOG_ERROR, "FUNCTION KEY F%d IS NOT BOUND, please edit your config.\n", i); esl_log(ESL_LOG_ERROR, "FUNCTION KEY F%d IS NOT BOUND, please edit your config.\n", i);
return CC_REDISPLAY; return CC_REDISPLAY;
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论