summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2007-05-31 17:04:43 -0700
committerH. Peter Anvin <hpa@zytor.com>2007-05-31 17:04:43 -0700
commita20e763343de14c1bf47f3ca72029ece54a4b7ce (patch)
tree382623cbf25152d37a7f987bb923cb384589c6e6
parente9601c59e62abc17c79e6e8b205595b944dc6e09 (diff)
downloadsyslinux-a20e763343de14c1bf47f3ca72029ece54a4b7ce.tar.gz
Fix decoding of <F11> and <F12>
-rw-r--r--ui.inc10
1 files changed, 5 insertions, 5 deletions
diff --git a/ui.inc b/ui.inc
index d3575857..189b599b 100644
--- a/ui.inc
+++ b/ui.inc
@@ -140,17 +140,17 @@ ctrl_f:
func_key:
; AL = 0 if we get here
xchg al,ah
- cmp al,68 ; F10
+ cmp al,44h ; F10
ja .f11_f12
- sub al,59 ; F1
+ sub al,3Bh ; F1
jb get_char_2
jmp show_help
.f11_f12:
- cmp al,87 ; F11
+ cmp al,85h ; F11
jb get_char_2
- cmp al,88 ; F12
+ cmp al,86h ; F12
ja get_char_2
- sub al,87-10
+ sub al,85h-10
show_help: ; AX = func key # (0 = F1, 9 = F10, 11 = F12)
push di ; Save end-of-cmdline pointer