summaryrefslogtreecommitdiff
path: root/main
diff options
context:
space:
mode:
authorTilghman Lesher <tilghman@meg.abyt.es>2010-06-01 15:18:59 +0000
committerTilghman Lesher <tilghman@meg.abyt.es>2010-06-01 15:18:59 +0000
commitdd26c53707540ce0f7ae723874f0b127641092e0 (patch)
tree52f1430821af8fe2db3549cd040281f2faea7fc8 /main
parent4eaea01cad5caffdb76625f12abbb9601ff1ddda (diff)
Merged revisions 266585 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r266585 | tilghman | 2010-06-01 10:17:46 -0500 (Tue, 01 Jun 2010) | 11 lines Prevent CLI prompt from distorting output of lines shorter than the prompt. Uses the VT100 method of clearing the line from the cursor position to the end of the line: Esc-0K (closes issue #17160) Reported by: coolmig Patches: 20100531__issue17160.diff.txt uploaded by tilghman (license 14) Tested by: coolmig ........ git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@266592 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'main')
-rw-r--r--main/asterisk.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/main/asterisk.c b/main/asterisk.c
index d11fc8dce..4b09d1e6a 100644
--- a/main/asterisk.c
+++ b/main/asterisk.c
@@ -2175,7 +2175,7 @@ static int ast_el_read_char(EditLine *editline, char *cp)
/* Write over the CLI prompt */
if (!ast_opt_exec && !lastpos) {
- if (write(STDOUT_FILENO, "\r", 1) < 0) {
+ if (write(STDOUT_FILENO, "\r", 5) < 0) {
}
}
if (write(STDOUT_FILENO, buf, res) < 0) {