DragonFly bugs List (threaded) for 2006-01
Re: turning off the beep
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' .
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:09:58 -0000
@@ -868,7 +868,7 @@
else if (!strcmp(opt, "normal"))
duration = 5, pitch = 800;
else if (!strcmp(opt, "off"))
- duration = 0, pitch = 0;
+ bell = 0, duration = 0, pitch = 0;