diff options
author | Ron Yorston <rmy@pobox.com> | 2023-07-12 11:52:06 +0100 |
---|---|---|
committer | Ron Yorston <rmy@pobox.com> | 2023-07-12 11:52:06 +0100 |
commit | 2a4b086d4848616306f97f6378e0f10a48d41929 (patch) | |
tree | 361555080da82c8aa1b35aed25e645354c282f1a /include | |
parent | 63f2f555277c8a4b2b992367aa26d497931deaeb (diff) | |
download | busybox-w32-2a4b086d4848616306f97f6378e0f10a48d41929.tar.gz busybox-w32-2a4b086d4848616306f97f6378e0f10a48d41929.tar.bz2 busybox-w32-2a4b086d4848616306f97f6378e0f10a48d41929.zip |
ash: properly echo console input to 'read' built-in
The 'read' shell built-in echoed console input to stdout. Echo
directly to the console instead.
Costs 124-136 bytes.
Diffstat (limited to 'include')
-rw-r--r-- | include/mingw.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/mingw.h b/include/mingw.h index f11316205..ae34666e8 100644 --- a/include/mingw.h +++ b/include/mingw.h | |||
@@ -174,6 +174,7 @@ size_t winansi_fread(void *ptr, size_t size, size_t nmemb, FILE *stream); | |||
174 | int winansi_getc(FILE *stream); | 174 | int winansi_getc(FILE *stream); |
175 | int winansi_getchar(void); | 175 | int winansi_getchar(void); |
176 | char *winansi_fgets(char *s, int size, FILE *stream); | 176 | char *winansi_fgets(char *s, int size, FILE *stream); |
177 | void console_write(const char *str, int len); | ||
177 | 178 | ||
178 | #define putchar winansi_putchar | 179 | #define putchar winansi_putchar |
179 | #define puts winansi_puts | 180 | #define puts winansi_puts |