From 5ce3a24dbaec87d3fc38c52cb2bcd631dff1a968 Mon Sep 17 00:00:00 2001 From: antirez Date: Fri, 10 Dec 2010 19:22:13 +0100 Subject: [PATCH] Linenoise updated to latest version --- deps/linenoise/linenoise.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/deps/linenoise/linenoise.c b/deps/linenoise/linenoise.c index dd434136..bfed5ea8 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) { -- GitLab