projects
/
platform
/
upstream
/
syslinux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f74fc98
)
Use extended keyboard interface, properly this time
author
hpa
<hpa>
Wed, 1 Dec 2004 03:09:42 +0000
(
03:09
+0000)
committer
hpa
<hpa>
Wed, 1 Dec 2004 03:09:42 +0000
(
03:09
+0000)
com32/libutil/include/getkey.h
patch
|
blob
|
history
conio.inc
patch
|
blob
|
history
diff --git
a/com32/libutil/include/getkey.h
b/com32/libutil/include/getkey.h
index
9b09ab4
..
ac5fd2b
100644
(file)
--- a/
com32/libutil/include/getkey.h
+++ b/
com32/libutil/include/getkey.h
@@
-47,8
+47,8
@@
#define KEY_F8 0x0107
#define KEY_F9 0x0108
#define KEY_F10 0x0109
-#define KEY_F11 0x010A
/* NOT SUPPORTED BY MOST BIOSES!!! */
-#define KEY_F12 0x010B
/* NOT SUPPORTED BY MOST BIOSES!!! */
+#define KEY_F11 0x010A
+#define KEY_F12 0x010B
#define KEY_UP 0x0120
#define KEY_DOWN 0x0121
diff --git
a/conio.inc
b/conio.inc
index
4210061
..
92cdb97
100644
(file)
--- a/
conio.inc
+++ b/
conio.inc
@@
-296,7
+296,7
@@
write_serial_str:
;
pollchar:
pushad
- mov ah,1
; Poll keyboard
+ mov ah,1
1h
; Poll keyboard
int 16h
jnz .done ; Keyboard response
mov dx,[SerialPort]
@@
-346,7
+346,7
@@
getchar:
.kbd: mov ah,10h ; Get keyboard input
int 16h
cmp al,0E0h
- jz .not_ext
+ j
n
z .not_ext
xor al,al
.not_ext:
and al,al