From: Erwan Velu Date: Wed, 18 Mar 2009 19:01:39 +0000 (+0100) Subject: hdt: Handling CTRL+C X-Git-Tag: syslinux-3.74-pre12~29 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=57747aa2870a65d2c29136cde0caad1ddc044d2a;p=platform%2Fupstream%2Fsyslinux.git hdt: Handling CTRL+C Impact: User can use the CTRL+C Basic Ctrl+C implementation --- diff --git a/com32/hdt/hdt-cli.c b/com32/hdt/hdt-cli.c index 08e0827..160089d 100644 --- a/com32/hdt/hdt-cli.c +++ b/com32/hdt/hdt-cli.c @@ -261,6 +261,10 @@ void start_cli_mode(struct s_hardware *hardware) //fgets(cli_line, sizeof cli_line, stdin); current_key = get_key(stdin, 0); switch (current_key) { + case KEY_CTRL('c'): + more_printf("\n"); + display_prompt(cli_line, &cli_mode, &cur_pos); + break; case KEY_TAB: break; case KEY_ENTER: