summaryrefslogtreecommitdiff
path: root/com32
diff options
context:
space:
mode:
authorErwan Velu <erwan.velu@free.fr>2009-04-04 04:06:18 +0200
committerErwan Velu <erwan.velu@free.fr>2009-04-04 04:06:18 +0200
commit5be7f0228dea745aa8e1fe18036517675bbe8c1e (patch)
tree3aa801fa52004c835002790d5135d397823af9d7 /com32
parent15626ed816a937f029a09ad0dd368bd0cccb4a2b (diff)
downloadsyslinux-5be7f0228dea745aa8e1fe18036517675bbe8c1e.tar.gz
hdt: DEL must be handle as BACKSPACE
Impact: Better conformity to standards To conform with serial lines, DEL must be handled as BACKSPACE Using Ctrl+D to delete a char Taken from http://www.gnu.org/software/bash/manual/html_node/Commands-For-Text.html
Diffstat (limited to 'com32')
-rw-r--r--com32/hdt/hdt-cli.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/com32/hdt/hdt-cli.c b/com32/hdt/hdt-cli.c
index d09e815c..1de0a5a7 100644
--- a/com32/hdt/hdt-cli.c
+++ b/com32/hdt/hdt-cli.c
@@ -895,8 +895,8 @@ void start_cli_mode(struct s_hardware *hardware)
reset_prompt();
break;
+ case KEY_CTRL('d'):
case KEY_DELETE:
- case KEY_DEL:
/* No need to delete when input is empty */
if (strlen(hdt_cli.input)==0) break;
/* Don't delete when cursor is at the end of the line */
@@ -918,6 +918,7 @@ void start_cli_mode(struct s_hardware *hardware)
move_cursor_left(strlen(hdt_cli.input + hdt_cli.cursor_pos));
break;
+ case KEY_DEL:
case KEY_BACKSPACE:
/* Don't delete prompt */
if (hdt_cli.cursor_pos == 0)