/*\r
* AcessOS Shell Version 3\r
*/\r
-#define USE_READLINE 0\r
+#define USE_READLINE 1\r
#include <acess/sys.h>\r
#include <stdlib.h>\r
#include <stdio.h>\r
#if !USE_READLINE\r
int bCached = 1;\r
#else\r
- tReadline readline_state = {0};\r
- #endif\r
- \r
- #if USE_READLINE\r
- readline_state.UseHistory = 1;\r
+ tReadline *readline_state = Readline_Init(1);\r
#endif\r
\r
gasEnvironment = envp;\r
\r
// Read Command line\r
#if USE_READLINE\r
- sCommandStr = Readline( &readline_state );\r
+ sCommandStr = Readline( readline_state );\r
length = strlen(sCommandStr);\r
#else\r
sCommandStr = ReadCommandLine( &length );\r