summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorhpa <hpa>2003-12-05 23:48:52 +0000
committerhpa <hpa>2003-12-05 23:48:52 +0000
commit9ae2ee1a076c55ec6b361d83c19b8cc83702d9dc (patch)
tree62d3ecfaf0ecd871a8343fc769896d71da5c30e0
parent9d53df5e55e5b990aed299f74a25c6af30dfb4fe (diff)
downloadsyslinux-2.08-pre9.tar.gz
Support Ctrl-U -> kill entire inputsyslinux-2.08-pre9
-rw-r--r--NEWS1
-rw-r--r--ui.inc6
2 files changed, 7 insertions, 0 deletions
diff --git a/NEWS b/NEWS
index f2fde656..23a9f868 100644
--- a/NEWS
+++ b/NEWS
@@ -23,6 +23,7 @@ Changes in 2.08:
location 0x5700. Thus, don't use it!
* PXELINUX: Change pathname length max from 63 to 127; change
max vkernels from 128 to 64.
+ * Support Ctrl-U -> kill entire command line input.
Changes in 2.07:
* MEMDISK: Workaround for BIOSes which go into a snit when
diff --git a/ui.inc b/ui.inc
index 528d5637..f98020cd 100644
--- a/ui.inc
+++ b/ui.inc
@@ -104,6 +104,8 @@ not_ascii: mov byte [FuncFlag],0
je command_done
cmp al,06h ; <Ctrl-F>
je set_func_flag
+ cmp al,15h ; <Ctrl-U>
+ je kill_command ; Kill input line
cmp al,16h ; <Ctrl-V>
je print_version
cmp al,08h ; Backspace
@@ -115,6 +117,10 @@ backspace: cmp di,command_line ; Make sure there is anything
call cwritestr
jmp short get_char_2
+kill_command:
+ call crlf
+ jmp enter_command
+
set_func_flag:
mov byte [FuncFlag],1
get_char_2: