aboutsummaryrefslogtreecommitdiffstats
path: root/com32
diff options
context:
space:
mode:
authorErwan Velu <erwan.velu@free.fr>2009-03-18 20:01:39 +0100
committerErwan Velu <erwan.velu@free.fr>2009-03-18 20:01:39 +0100
commit57747aa2870a65d2c29136cde0caad1ddc044d2a (patch)
treeab87be5b78758fd1be06ae978ea0ac51214d5887 /com32
parentca466f1b7952e5956d0fac4b6f1004a27eb4f1eb (diff)
downloadsyslinux.git-57747aa2870a65d2c29136cde0caad1ddc044d2a.tar.gz
syslinux.git-57747aa2870a65d2c29136cde0caad1ddc044d2a.tar.xz
syslinux.git-57747aa2870a65d2c29136cde0caad1ddc044d2a.zip
hdt: Handling CTRL+C
Impact: User can use the CTRL+C Basic Ctrl+C implementation
Diffstat (limited to 'com32')
-rw-r--r--com32/hdt/hdt-cli.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/com32/hdt/hdt-cli.c b/com32/hdt/hdt-cli.c
index 08e08273..160089d3 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: