diff options
Diffstat (limited to 'libbb/lineedit.c')
-rw-r--r-- | libbb/lineedit.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/libbb/lineedit.c b/libbb/lineedit.c index f3cbc512c..27c1f3a74 100644 --- a/libbb/lineedit.c +++ b/libbb/lineedit.c | |||
@@ -312,7 +312,7 @@ static void BB_PUTCHAR(wchar_t c) | |||
312 | ssize_t len = wcrtomb(buf, c, &mbst); | 312 | ssize_t len = wcrtomb(buf, c, &mbst); |
313 | if (len > 0) { | 313 | if (len > 0) { |
314 | buf[len] = '\0'; | 314 | buf[len] = '\0'; |
315 | fputs(buf, stdout); | 315 | fputs_stdout(buf); |
316 | } | 316 | } |
317 | } else { | 317 | } else { |
318 | /* In this case, c is always one byte */ | 318 | /* In this case, c is always one byte */ |
@@ -496,7 +496,7 @@ static void beep(void) | |||
496 | */ | 496 | */ |
497 | static void put_prompt_custom(bool is_full) | 497 | static void put_prompt_custom(bool is_full) |
498 | { | 498 | { |
499 | fputs((is_full ? cmdedit_prompt : prompt_last_line), stdout); | 499 | fputs_stdout((is_full ? cmdedit_prompt : prompt_last_line)); |
500 | cursor = 0; | 500 | cursor = 0; |
501 | cmdedit_y = cmdedit_prmt_len / cmdedit_termw; /* new quasireal y */ | 501 | cmdedit_y = cmdedit_prmt_len / cmdedit_termw; /* new quasireal y */ |
502 | cmdedit_x = cmdedit_prmt_len % cmdedit_termw; | 502 | cmdedit_x = cmdedit_prmt_len % cmdedit_termw; |
@@ -1955,7 +1955,7 @@ static void ask_terminal(void) | |||
1955 | pfd.events = POLLIN; | 1955 | pfd.events = POLLIN; |
1956 | if (safe_poll(&pfd, 1, 0) == 0) { | 1956 | if (safe_poll(&pfd, 1, 0) == 0) { |
1957 | S.sent_ESC_br6n = 1; | 1957 | S.sent_ESC_br6n = 1; |
1958 | fputs(ESC"[6n", stdout); | 1958 | fputs_stdout(ESC"[6n"); |
1959 | fflush_all(); /* make terminal see it ASAP! */ | 1959 | fflush_all(); /* make terminal see it ASAP! */ |
1960 | } | 1960 | } |
1961 | } | 1961 | } |
@@ -3085,7 +3085,7 @@ int FAST_FUNC read_line_input(line_input_t *st, const char *prompt, char *comman | |||
3085 | #undef read_line_input | 3085 | #undef read_line_input |
3086 | int FAST_FUNC read_line_input(const char* prompt, char* command, int maxsize) | 3086 | int FAST_FUNC read_line_input(const char* prompt, char* command, int maxsize) |
3087 | { | 3087 | { |
3088 | fputs(prompt, stdout); | 3088 | fputs_stdout(prompt); |
3089 | fflush_all(); | 3089 | fflush_all(); |
3090 | if (!fgets(command, maxsize, stdin)) | 3090 | if (!fgets(command, maxsize, stdin)) |
3091 | return -1; | 3091 | return -1; |