[dwm] [dvtm] CO_BEL patch for madtty.c

From: Leonardo Taccari <leonardo1990_AT_gmail.com>
Date: Sat, 16 Feb 2008 16:16:32 +0100

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/

Received on Sat Feb 16 2008 - 16:06:34 UTC

This archive was generated by hypermail 2.2.0 : Sun Jul 13 2008 - 15:20:19 UTC