mirror of
https://github.com/vanhoefm/fragattacks.git
synced 2025-01-31 01:04:03 -05:00
edit: Redraw input line on ^L
This commit is contained in:
parent
82a855bda8
commit
616e0e728e
@ -250,6 +250,7 @@ static void insert_char(int c)
|
|||||||
if (c < 32 && c > 255) {
|
if (c < 32 && c > 255) {
|
||||||
printf("[%d]\n", c);
|
printf("[%d]\n", c);
|
||||||
edit_redraw();
|
edit_redraw();
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (cmdbuf_len >= (int) sizeof(cmdbuf) - 1)
|
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 */
|
case 11: /* ^K */
|
||||||
clear_right();
|
clear_right();
|
||||||
break;
|
break;
|
||||||
|
case 12: /* ^L */
|
||||||
|
edit_clear_line();
|
||||||
|
edit_redraw();
|
||||||
|
break;
|
||||||
case 14: /* ^N */
|
case 14: /* ^N */
|
||||||
history_next();
|
history_next();
|
||||||
break;
|
break;
|
||||||
|
Loading…
Reference in New Issue
Block a user