]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
edit: Redraw input line on ^L
authorJouni Malinen <j@w1.fi>
Sun, 14 Nov 2010 19:03:24 +0000 (21:03 +0200)
committerJouni Malinen <j@w1.fi>
Sun, 14 Nov 2010 19:03:24 +0000 (21:03 +0200)
src/utils/edit.c

index 5bda498eeea883454a8f0a63746498f3e07c8e30..ac8bea8f2b1a1429a45f1717ef0c4d3df16523ab 100644 (file)
@@ -250,6 +250,7 @@ static void insert_char(int c)
        if (c < 32 && c > 255) {
                printf("[%d]\n", c);
                edit_redraw();
+               return;
        }
 
        if (cmdbuf_len >= (int) sizeof(cmdbuf) - 1)
@@ -459,6 +460,10 @@ static void edit_read_char(int sock, void *eloop_ctx, void *sock_ctx)
        case 11: /* ^K */
                clear_right();
                break;
+       case 12: /* ^L */
+               edit_clear_line();
+               edit_redraw();
+               break;
        case 14: /* ^N */
                history_next();
                break;