* \li Basic support for ANSI escape sequences for input of special codes.
* \li Support for command name completion (through a hook).
*
- * \version $Id$
*
* \author Giovanni Bajo <rasky@develer.com>
+ *
+ * $WIZ$ module_name = "readline"
+ * $WIZ$ module_depends = "sprintf"
*/
#include <string.h>
-#define HISTORY_SIZE 1024
+#define HISTORY_SIZE 32
typedef int (*getc_hook)(void* user_data);
typedef void (*putc_hook)(char ch, void* user_data);
{
memset(ctx->real_history, 0, sizeof(ctx->real_history));
ctx->history_pos = 0;
+ ctx->line_pos = ctx->history_pos;
ctx->history = ctx->real_history;
}