projects
/
bertos.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Remove path from toolchain when creating presets (use the system one).
[bertos.git]
/
bertos
/
mware
/
readline.h
diff --git
a/bertos/mware/readline.h
b/bertos/mware/readline.h
index 9219bfd7945e6931d8ea498edaaf19534a41953f..8a104759df34782376facb4d381dec821f0927d0 100644
(file)
--- a/
bertos/mware/readline.h
+++ b/
bertos/mware/readline.h
@@
-40,9
+40,11
@@
* \li Basic support for ANSI escape sequences for input of special codes.
* \li Support for command name completion (through a hook).
*
* \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>
*
* \author Giovanni Bajo <rasky@develer.com>
+ *
+ * $WIZ$ module_name = "readline"
+ * $WIZ$ module_depends = "sprintf"
*/
*/
@@
-53,7
+55,7
@@
#include <string.h>
#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);
typedef int (*getc_hook)(void* user_data);
typedef void (*putc_hook)(char ch, void* user_data);
@@
-92,6
+94,7
@@
INLINE void rl_clear_history(struct RLContext *ctx)
{
memset(ctx->real_history, 0, sizeof(ctx->real_history));
ctx->history_pos = 0;
{
memset(ctx->real_history, 0, sizeof(ctx->real_history));
ctx->history_pos = 0;
+ ctx->line_pos = ctx->history_pos;
ctx->history = ctx->real_history;
}
ctx->history = ctx->real_history;
}