diff options
Diffstat (limited to 'src/ui_readline.c')
-rw-r--r-- | src/ui_readline.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/ui_readline.c b/src/ui_readline.c index ebb21ef..5d6b7a7 100644 --- a/src/ui_readline.c +++ b/src/ui_readline.c @@ -241,7 +241,7 @@ size_t BarReadline (char *buf, const size_t bufSize, const char *mask, case VK_RETURN: if (echo) - fputc('\n', stdout); + BarConsolePutc('\n'); return bufLen; default: { @@ -274,8 +274,8 @@ size_t BarReadline (char *buf, const size_t bufSize, const char *mask, strncpy(bufOut, encodedCodePoint, encodedCodePointLength); if (echo) { - fputs(encodedCodePoint, stdout); - fflush(stdout); + BarConsolePuts(encodedCodePoint); + BarConsoleFlush(); } bufOut += encodedCodePointLength; @@ -285,7 +285,7 @@ size_t BarReadline (char *buf, const size_t bufSize, const char *mask, if ((bufLen >= (int)(bufSize - 1)) && overflow) { if (echo) - fputc('\n', stdout); + BarConsolePutc('\n'); return bufLen; } } |