On Mon, Jan 09, 2006 at 05:24:25PM +0900, YONETANI Tomokazu wrote: > On Mon, Jan 09, 2006 at 02:02:32AM -0500, Erik V. Smith wrote: > > With 1.4.0 Release, "kbdcontrol -b quiet.off" should turn off the > > keyboard beep, however it is not being disabled. Furthermore, > > "kbdcontrol -b visual" does not cause the screen to flash at the > > appropriate time. > > I don't see a difference between `-b off' and `-b quiet.off', as the > former has always worked for me to turn off the beep. The patch below > should make `-b quiet.off' a synonym to `-b off'. Do you like it? > As for `-b visual', it works as it is; the screen flashes, for instance, > when I hit backspace at the beginning of line, or when I run printf '\007' .
And this one should also fix `-b quiet.visual' which drhodus@ mentioned earlier on kernel@ with a subject "BEEPING": http://leaf.dragonflybsd.org/mailarchive/kernel/2005-08/msg00050.html Index: kbdcontrol.c =================================================================== RCS file: /home/source/dragonfly/cvs/src/usr.sbin/kbdcontrol/kbdcontrol.c,v retrieving revision 1.5 diff -u -r1.5 kbdcontrol.c --- kbdcontrol.c 30 Oct 2005 23:00:57 -0000 1.5 +++ kbdcontrol.c 9 Jan 2006 08:34:39 -0000 @@ -858,7 +858,7 @@ { int bell, duration, pitch; - bell = 0; + bell = duration = pitch = 0; if (!strncmp(opt, "quiet.", 6)) { bell = 2; opt += 6; @@ -868,7 +868,7 @@ else if (!strcmp(opt, "normal")) duration = 5, pitch = 800; else if (!strcmp(opt, "off")) - duration = 0, pitch = 0; + bell = 0; else { char *v1;
