linenoise
while ((input = linenoise(prompt())) != NULL) {
while((line = linenoise("hello> ")) != NULL) {
char *linenoise(const char *prompt);