X-Git-Url: https://git.ucc.asn.au/?a=blobdiff_plain;f=Usermode%2FApplications%2FCLIShell_src%2Fmain.c;h=33907eeeb115a79e75528e5f52436829cf8555aa;hb=fe24894229067f695d5db33c213fc09086740dec;hp=579df881d8636023058b797d18b821d5a283ba93;hpb=45f9a29e481ce9ea7ca7121541f0e0f90147f5b1;p=tpg%2Facess2.git diff --git a/Usermode/Applications/CLIShell_src/main.c b/Usermode/Applications/CLIShell_src/main.c index 579df881..33907eee 100644 --- a/Usermode/Applications/CLIShell_src/main.c +++ b/Usermode/Applications/CLIShell_src/main.c @@ -1,7 +1,7 @@ /* * AcessOS Shell Version 3 */ -#define USE_READLINE 0 +#define USE_READLINE 1 #include #include #include @@ -59,11 +59,7 @@ int main(int argc, char *argv[], char *envp[]) #if !USE_READLINE int bCached = 1; #else - tReadline readline_state = {0}; - #endif - - #if USE_READLINE - readline_state.UseHistory = 1; + tReadline *readline_state = Readline_Init(1); #endif gasEnvironment = envp; @@ -97,7 +93,7 @@ int main(int argc, char *argv[], char *envp[]) // Read Command line #if USE_READLINE - sCommandStr = Readline( &readline_state ); + sCommandStr = Readline( readline_state ); length = strlen(sCommandStr); #else sCommandStr = ReadCommandLine( &length );