mirror of
https://github.com/fluencelabs/redis
synced 2025-04-25 18:42:13 +00:00
Linenoise updated to latest version
This commit is contained in:
parent
afd438dfff
commit
5ce3a24dba
4
deps/linenoise/linenoise.c
vendored
4
deps/linenoise/linenoise.c
vendored
@ -279,7 +279,9 @@ static int completeLine(int fd, const char *prompt, char *buf, size_t buflen, si
|
|||||||
}
|
}
|
||||||
|
|
||||||
void linenoiseClearScreen(void) {
|
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) {
|
static int linenoisePrompt(int fd, char *buf, size_t buflen, const char *prompt) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user