diff options
Diffstat (limited to 'shell/shell_common.c')
-rw-r--r-- | shell/shell_common.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/shell/shell_common.c b/shell/shell_common.c index 716d3aebb..99e56a050 100644 --- a/shell/shell_common.c +++ b/shell/shell_common.c | |||
@@ -235,7 +235,7 @@ shell_builtin_read(struct builtin_read_params *params) | |||
235 | --bufpos; | 235 | --bufpos; |
236 | ++nchars; | 236 | ++nchars; |
237 | if (!(read_flags & BUILTIN_READ_SILENT)) { | 237 | if (!(read_flags & BUILTIN_READ_SILENT)) { |
238 | printf("\b \b"); | 238 | console_write("\b \b", 3); |
239 | } | 239 | } |
240 | } | 240 | } |
241 | goto loop; | 241 | goto loop; |
@@ -243,7 +243,7 @@ shell_builtin_read(struct builtin_read_params *params) | |||
243 | buffer[bufpos] = key == '\r' ? '\n' : key; | 243 | buffer[bufpos] = key == '\r' ? '\n' : key; |
244 | if (!(read_flags & BUILTIN_READ_SILENT)) { | 244 | if (!(read_flags & BUILTIN_READ_SILENT)) { |
245 | /* echo input if not in silent mode */ | 245 | /* echo input if not in silent mode */ |
246 | putchar(buffer[bufpos]); | 246 | console_write(buffer + bufpos, 1); |
247 | } | 247 | } |
248 | } | 248 | } |
249 | else { | 249 | else { |