提交 f6e6d08b authored 作者: Mathieu Rene's avatar Mathieu Rene

ESL-13

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@12952 d0543943-73ff-0310-b7d9-9358b9ac24b2
上级 cdc8fd50
...@@ -140,10 +140,20 @@ static unsigned char console_f12key(EditLine * el, int ch) ...@@ -140,10 +140,20 @@ static unsigned char console_f12key(EditLine * el, int ch)
static unsigned char console_eofkey(EditLine * el, int ch) static unsigned char console_eofkey(EditLine * el, int ch)
{ {
printf("/exit\n\n"); LineInfo *line;
running = thread_running = 0; /* only exit if empty line */
line = (LineInfo *)el_line(el);
return CC_EOF; if (line->buffer == line->lastchar) {
printf("/exit\n\n");
running = thread_running = 0;
return CC_EOF;
} else {
if (line->cursor != line->lastchar) {
line->cursor++;
el_deletestr(el, 1);
}
return CC_REDISPLAY;
}
} }
#endif #endif
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论