diff options
author | tilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b> | 2010-06-01 15:20:14 +0000 |
---|---|---|
committer | tilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b> | 2010-06-01 15:20:14 +0000 |
commit | 5d439abcfe593f7ea0bb9bc62b3e7a28909f5cf2 (patch) | |
tree | 69ef53fdf7f0e43c952cb8c613b1273b1f16303e /main | |
parent | 7d418b23104dcfe0f35b75e5197c35bf87673de5 (diff) |
Merged revisions 266592 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk
................
r266592 | tilghman | 2010-06-01 10:18:59 -0500 (Tue, 01 Jun 2010) | 18 lines
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: http://svn.digium.com/svn/asterisk/branches/1.6.2@266598 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'main')
-rw-r--r-- | main/asterisk.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/main/asterisk.c b/main/asterisk.c index 5f37fc03e..0d71c2a05 100644 --- a/main/asterisk.c +++ b/main/asterisk.c @@ -2167,7 +2167,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[0K", 5) < 0) { } } if (write(STDOUT_FILENO, buf, res) < 0) { |