diff options
Diffstat (limited to 'cpukit/libmisc')
-rw-r--r-- | cpukit/libmisc/shell/shell.c | 5 |
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; } |