**********
r22606 | batt | 2008-11-08 12:50:50 +0100 (sab, 08 nov 2008) | 1 line
Remove kludge used for displaying prompt in triface.
**********
git-svn-id: https://src.develer.com/svnoss/bertos/trunk@1915
38d2e660-2303-0410-9eaa-
f027e97ec537
* aim at fast performances (line editing does not require to be blazingly fast).
*
* \li The first character in the history is always \c \\0, and it is used as a guard. By 'wasting' it
* aim at fast performances (line editing does not require to be blazingly fast).
*
* \li The first character in the history is always \c \\0, and it is used as a guard. By 'wasting' it
- * in this way, the code actually gets much simpler in that we remove many checks when moving
+ * in this way, the code actually gets much simpler in that we remove many checks when moving
* backward (\c i>0 and similar).
*
* \li While editing, the current index points to the position of the buffer which contains the
* backward (\c i>0 and similar).
*
* \li While editing, the current index points to the position of the buffer which contains the
if (c == '\r' || c == '\n')
{
if (c == '\r' || c == '\n')
{
- if (ctx->prompt)
- rl_puts(ctx, ctx->prompt);
-
// Terminate line
insert_chars(ctx, &ctx->line_pos, NULL, 0);
rl_puts(ctx, "\r\n");
// Terminate line
insert_chars(ctx, &ctx->line_pos, NULL, 0);
rl_puts(ctx, "\r\n");