diff options
-rw-r--r-- | deps/linenoise/linenoise.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/deps/linenoise/linenoise.c b/deps/linenoise/linenoise.c index dd4341366..bfed5ea86 100644 --- a/deps/linenoise/linenoise.c +++ b/deps/linenoise/linenoise.c @@ -279,7 +279,9 @@ static int completeLine(int fd, const char *prompt, char *buf, size_t buflen, si } void linenoiseClearScreen(void) { - write(STDIN_FILENO,"\x1b[H\x1b[2J",7); + if (write(STDIN_FILENO,"\x1b[H\x1b[2J",7) <= 0) { + /* nothing to do, just to avoid warning. */ + } } static int linenoisePrompt(int fd, char *buf, size_t buflen, const char *prompt) { |