From 7a28f0900ce415c2535187561cfeba7b64db4875 Mon Sep 17 00:00:00 2001 From: nishi Date: Sat, 27 Apr 2024 00:09:46 +0000 Subject: [PATCH] readline works git-svn-id: file:///raid/svn-main/nishi-serenade/trunk@58 0f02c867-ac3d-714e-8a88-971ba1f6efcf --- Serenade/main.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Serenade/main.c b/Serenade/main.c index cd2e031..d1a7a6d 100644 --- a/Serenade/main.c +++ b/Serenade/main.c @@ -116,13 +116,14 @@ int main(int argc, char** argv) { int br = 0; #ifdef HAS_READLINE_SUPPORT char* line = NULL; + using_history(); #endif while(1) { #ifdef HAS_READLINE_SUPPORT line = readline("> "); if(line == NULL){ free(line); - continue; + break; } int i; for(i = 0; line[i] != 0; i++){ -- 2.43.0