Merged revisions 266585 via svnmerge from
[asterisk/asterisk.git] / main / asterisk.c
index d11fc8d..4b09d1e 100644 (file)
@@ -2175,7 +2175,7 @@ static int ast_el_read_char(EditLine *editline, char *cp)
 
                        /* Write over the CLI prompt */
                        if (!ast_opt_exec && !lastpos) {
 
                        /* Write over the CLI prompt */
                        if (!ast_opt_exec && !lastpos) {
-                               if (write(STDOUT_FILENO, "\r", 1) < 0) {
+                               if (write(STDOUT_FILENO, "\r\e[0K", 5) < 0) {
                                }
                        }
                        if (write(STDOUT_FILENO, buf, res) < 0) {
                                }
                        }
                        if (write(STDOUT_FILENO, buf, res) < 0) {