]> git.saurik.com Git - redis.git/blobdiff - deps/linenoise/linenoise.c
profiling information in INFO
[redis.git] / deps / linenoise / linenoise.c
index dd43413661ca9677c51667ca657daeca50706307..bfed5ea863f5511967b952bc76e709bd0e64e046 100644 (file)
@@ -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) {