Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
ruanhaishen
redis
Commits
5ce3a24d
Commit
5ce3a24d
authored
Dec 10, 2010
by
antirez
Browse files
Linenoise updated to latest version
parent
afd438df
Changes
1
Show whitespace changes
Inline
Side-by-side
deps/linenoise/linenoise.c
View file @
5ce3a24d
...
@@ -279,7 +279,9 @@ static int completeLine(int fd, const char *prompt, char *buf, size_t buflen, si
...
@@ -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
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment