]>
git.saurik.com Git - redis.git/blob - deps/linenoise/example.c
8 linenoiseHistoryLoad("history.txt"); /* Load the history at startup */
9 while((line
= linenoise("hello> ")) != NULL
) {
10 if (line
[0] != '\0') {
11 printf("echo: '%s'\n", line
);
12 linenoiseHistoryAdd(line
);
13 linenoiseHistorySave("history.txt"); /* Save every new entry */