summaryrefslogtreecommitdiff
path: root/conio.inc
diff options
context:
space:
mode:
authorhpa <hpa>2005-06-16 04:39:19 +0000
committerhpa <hpa>2005-06-16 04:39:19 +0000
commit9fae82c913d8980c73d705e0031703177f40b70e (patch)
tree9268b2e8237d4b436d3028b04f23f5933f3ea0ef /conio.inc
parent18a2d5163b981425521fa73e9182702aa0e93294 (diff)
downloadsyslinux-9fae82c913d8980c73d705e0031703177f40b70e.tar.gz
Beep the speaker on ^G
Diffstat (limited to 'conio.inc')
-rw-r--r--conio.inc8
1 files changed, 8 insertions, 0 deletions
diff --git a/conio.inc b/conio.inc
index 7af5ebe1..af956d88 100644
--- a/conio.inc
+++ b/conio.inc
@@ -99,6 +99,8 @@ msg_putchar: ; Normal character
je msg_newline
cmp al,0Ch ; <FF> = clear screen
je msg_formfeed
+ cmp al,07h ; <BEL> = beep
+ je msg_beep
cmp al,19h ; <EM> = return to text mode
je msg_novga
cmp al,18h ; <CAN> = VGA filename follows
@@ -129,6 +131,12 @@ msg_gotoxy: mov bh,[BIOS_page]
mov ah,02h ; Set cursor position
int 10h
msg_ignore: ret
+
+msg_beep: mov ax,0E07h ; Beep
+ xor bx,bx
+ int 10h
+ ret
+
msg_ctrl_o: ; ^O = color code follows
mov word [NextCharJump],msg_setbg
ret