Package: syslinux
Version: 2:3.70+dfsg-2youpi
Severity: normal
Tags: patch

Hello,

Putting ^G in text is supposed to produce a beep, that works in f1-f12
help, but not in graphical menu.  The attached patch fixes that.

Samuel

-- System Information:
Debian Release: lenny/sid
  APT prefers testing
  APT policy: (990, 'testing'), (500, 'oldstable'), (500, 'unstable'), (500, 
'stable'), (1, 'experimental')
Architecture: i386 (i686)

Kernel: Linux 2.6.26
Locale: [EMAIL PROTECTED], [EMAIL PROTECTED] (charmap=ISO-8859-15)
Shell: /bin/sh linked to /bin/bash

Versions of packages syslinux depends on:
ii  libc6                         2.7-10     GNU C Library: Shared libraries

Versions of packages syslinux recommends:
ii  mtools                        3.9.11-1   Tools for manipulating MSDOS files

-- no debconf information

-- 
Samuel
 Moralité : le modem et le cablerouteur font comme les filles, ils
 papotent toute la journée.
 -+- RB in NPC : Et en plus, ils ne parlent que de bits -+-
diff -ur syslinux-3.70+dfsg/com32/lib/sys/ansi.c 
syslinux-3.70+dfsg.mine/com32/lib/sys/ansi.c
--- syslinux-3.70+dfsg/com32/lib/sys/ansi.c     2008-06-30 23:34:05.000000000 
+0100
+++ syslinux-3.70+dfsg.mine/com32/lib/sys/ansi.c        2008-07-20 
15:16:49.000000000 +0100
@@ -33,6 +33,7 @@
 
 #include <string.h>
 #include <colortbl.h>
+#include <com32.h>
 #include "ansi.h"
 
 static const struct term_state default_state =
@@ -86,6 +87,13 @@
     case '\b':
       if ( xy.x > 0 ) xy.x--;
       break;
+    case '\a': {
+      static com32sys_t ireg;
+      ireg.eax.b[1] = 0x0e;
+      ireg.eax.b[0] = 0x07;
+      __intcall(0x10, &ireg, NULL);
+      break;
+    }
     case '\t':
       {
        int nsp = 8 - (xy.x & 7);

Reply via email to