X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;f=bertos%2Fmware%2Freadline.h;h=8a104759df34782376facb4d381dec821f0927d0;hb=a5a4e29851b8de831681013945abe8764c594cec;hp=ab2af7c391c625bd2a74968858e26fc125f37a54;hpb=0ff12c45e1687c1fc34b31d851399ef45cea52ec;p=bertos.git diff --git a/bertos/mware/readline.h b/bertos/mware/readline.h index ab2af7c3..8a104759 100644 --- 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). * - * \version $Id$ * * \author Giovanni Bajo + * + * $WIZ$ module_name = "readline" + * $WIZ$ module_depends = "sprintf" */ @@ -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; + ctx->line_pos = ctx->history_pos; ctx->history = ctx->real_history; }