diff options
Diffstat (limited to 'shell')
-rw-r--r-- | shell/ash.c | 4 | ||||
-rw-r--r-- | shell/shell_common.c | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/shell/ash.c b/shell/ash.c index 17af816d4..f3eb98d85 100644 --- a/shell/ash.c +++ b/shell/ash.c | |||
@@ -15775,8 +15775,8 @@ exitshell(void) | |||
15775 | out: | 15775 | out: |
15776 | #if ENABLE_SUW32 | 15776 | #if ENABLE_SUW32 |
15777 | if (delayexit) { | 15777 | if (delayexit) { |
15778 | freopen("CONOUT$", "w", stdout); | 15778 | #define EXIT_MSG "Press any key to exit..." |
15779 | fputs_stdout("Press any key to exit..."); | 15779 | console_write(EXIT_MSG, sizeof(EXIT_MSG) - 1); |
15780 | _getch(); | 15780 | _getch(); |
15781 | } | 15781 | } |
15782 | #endif | 15782 | #endif |
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 { |