Hello Marc and all dvtm lovers (and users),
with dvtm I wasn't able to listen the '\a' so I saw that it was a feature,
not a bug.
I saw that madtty.c need ncurses.h, so we can use the beep()[0][1]
X/Open Curses function for this stuff.

I simply added the beep() invocation on the madtty_process_nonprinting()
routine (case CO_BEL).


I also hope to commit wip/dvtm on pkgsrc[2] this weekend (pkgsrc is the
NetBSD packages system, but it is very very very portable so it runs on
a lot other OSes as well). My local package works well, but I should add
options.mk for selecting ncurses or ncursesw.


HTH.


[0] NetBSD Curses library: curses_tty(3)
[1] ncurses library: curs_beep(3X)
[2] http://www.pkgsrc.org/


Ciao, Leonardo
-- 
 Leonardo Taccari (leot) | http://leot.netsons.org/
--- madtty.c.orig       2008-02-14 16:55:42.000000000 +0100
+++ madtty.c    2008-02-14 17:04:12.000000000 +0100
@@ -663,9 +663,13 @@
         new_escape_sequence(t);
         break;
 
-      case C0_BEL:
-        /* do nothing for now... maybe a visual bell would be nice? */
-        break;
+      case C0_BEL: /* bell */
+                 /* 
+                       * If possible play our dear speaker or flash the screen
+                       * (otherwise do nothing).
+                       */
+                 (void)beep();
+                 break;
 
       case C0_BS:
         if (t->curs_col > 0)

Attachment: pgpPDqAfeVE00.pgp
Description: PGP signature

Reply via email to