make sure we don't show any junk in MKSH_CLS_STRING even if the terminal is

not standards compatible
This commit is contained in:
tg 2007-07-31 15:42:50 +00:00
parent 47836e45e7
commit 45cadd2abf
1 changed files with 2 additions and 1 deletions

3
edit.c
View File

@ -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);