From: Jouni Malinen Date: Sun, 14 Nov 2010 19:03:24 +0000 (+0200) Subject: edit: Redraw input line on ^L X-Git-Tag: hostap-1-bp~815 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=616e0e728e493ea3bd8adcc3f4f827f5f275ad81;p=thirdparty%2Fhostap.git edit: Redraw input line on ^L --- diff --git a/src/utils/edit.c b/src/utils/edit.c index 5bda498ee..ac8bea8f2 100644 --- a/src/utils/edit.c +++ b/src/utils/edit.c @@ -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;