X-Git-Url: https://jxself.org/git/?p=open-adventure.git;a=blobdiff_plain;f=main.c;h=31eaf4691e9e68131b9f9530941e7a750204dd65;hp=4a5d3c5deb797dd22e4d5a9017c03c6109aa85f5;hb=63e971fc4cfc4d7a5638da032326eaf016c62719;hpb=037f1df7dd8faf29622654ec4a79c2437b927b28 diff --git a/main.c b/main.c index 4a5d3c5..31eaf46 100644 --- a/main.c +++ b/main.c @@ -11,6 +11,7 @@ #include #include "advent.h" #include "database.h" +#include "linenoise/linenoise.h" struct game_t game; @@ -82,6 +83,8 @@ case 'l': } } + linenoiseHistorySetMaxLen(350); + /* Logical variables: * * game.closed says whether we're all the way closed