summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--cpukit/libmisc/shell/shell.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/cpukit/libmisc/shell/shell.c b/cpukit/libmisc/shell/shell.c
index 13ae411f9c..77214d0be4 100644
--- a/cpukit/libmisc/shell/shell.c
+++ b/cpukit/libmisc/shell/shell.c
@@ -621,11 +621,16 @@ static int rtems_shell_line_editor(
if (col > 0)
{
int clen = strlen (line);
+ int bs;
strcpy (line, line + col);
if (output) {
fprintf(out,"\r%s%*c", prompt, clen, ' ');
fprintf(out,"\r%s%s", prompt, line);
+
+ for (bs = 0; bs < strlen(line); bs++) {
+ fputc('\b', out);
+ }
}
col = 0;
}