Beep the speaker on ^G
authorhpa <hpa>
Thu, 16 Jun 2005 04:39:19 +0000 (04:39 +0000)
committerhpa <hpa>
Thu, 16 Jun 2005 04:39:19 +0000 (04:39 +0000)
NEWS
conio.inc
syslinux.doc

diff --git a/NEWS b/NEWS
index 0a37cbf..e92151f 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -4,6 +4,7 @@ them.
 
 Changes in 3.09:
        * gcc4 compilation fix.
+       * <BEL> (Ctrl-G) in message files now causes a beep.
 
 Changes in 3.08:
        * SYSLINUX: Fix performance regression (-s mode always
index 7af5ebe..af956d8 100644 (file)
--- 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
index bd9f76a..4cd6b33 100644 (file)
@@ -440,6 +440,9 @@ are interpreted:
 <SUB>                                   <SUB> = <Ctrl-Z> = ASCII 26
         End of file (DOS convention).
 
+<BEL>                                  <BEL> = <Ctrl-G> = ASCII 7
+       Beep the speaker.
+
 
    ++++ COMMAND LINE KEYSTROKES ++++