From 45cadd2abf8e21b049646a7d60c54887ab624ddb Mon Sep 17 00:00:00 2001 From: tg Date: Tue, 31 Jul 2007 15:42:50 +0000 Subject: [PATCH] make sure we don't show any junk in MKSH_CLS_STRING even if the terminal is not standards compatible --- edit.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/edit.c b/edit.c index 51b4ff2..611c469 100644 --- a/edit.c +++ b/edit.c @@ -5,7 +5,7 @@ #include "sh.h" -__RCSID("$MirOS: src/bin/mksh/edit.c,v 1.109 2007/07/31 15:29:39 tg Exp $"); +__RCSID("$MirOS: src/bin/mksh/edit.c,v 1.110 2007/07/31 15:42:50 tg Exp $"); /* tty driver characters we are interested in */ typedef struct { @@ -2249,6 +2249,7 @@ x_cls(int c __unused) #define MKSH_CLS_STRING "\033[;H\033[J" #endif shf_fprintf(shl_out, MKSH_CLS_STRING); + x_putc('\r'); x_init_prompt(); x_redraw(0); return (KSTD);