From 877b1230e9647cbd55acc8b8b27d506857d387fd Mon Sep 17 00:00:00 2001 From: yokota Date: Thu, 22 Jul 1999 14:19:14 +0000 Subject: - Add new argument `off' to the `-b' option. This will turn off the bell. - Document it in the man page. - Fix a couple of typo in the man page. Submitted by: cpiazza --- usr.sbin/kbdcontrol/kbdcontrol.1 | 8 +++++--- usr.sbin/kbdcontrol/kbdcontrol.c | 4 +++- 2 files changed, 8 insertions(+), 4 deletions(-) (limited to 'usr.sbin/kbdcontrol') diff --git a/usr.sbin/kbdcontrol/kbdcontrol.1 b/usr.sbin/kbdcontrol/kbdcontrol.1 index c1d6496..4105957 100644 --- a/usr.sbin/kbdcontrol/kbdcontrol.1 +++ b/usr.sbin/kbdcontrol/kbdcontrol.1 @@ -11,7 +11,7 @@ .\" documentation and/or other materials provided with the distribution. .\" .\" @(#)kbdcontrol.1 -.\" $Id$ +.\" $Id: kbdcontrol.1,v 1.13 1999/07/12 20:12:09 nik Exp $ .\" .Dd June 30, 1999 .Dt KBDCONTROL 1 @@ -52,9 +52,11 @@ If a .Ar belltype argument is specified, it may be one of .Cm normal -which set sound parameters back to normal values, or +which sets sound parameters back to normal values, +.Cm off +which disables the bell entirely, or .Cm visual -which set the bell to visual mode, i.e. flashes the screen instead. +which sets the bell to visual mode, i.e. flashes the screen instead. If .Ar belltype is preceded by the word diff --git a/usr.sbin/kbdcontrol/kbdcontrol.c b/usr.sbin/kbdcontrol/kbdcontrol.c index 06ee249..e0f04f9 100644 --- a/usr.sbin/kbdcontrol/kbdcontrol.c +++ b/usr.sbin/kbdcontrol/kbdcontrol.c @@ -28,7 +28,7 @@ #ifndef lint static const char rcsid[] = - "$Id: kbdcontrol.c,v 1.25 1999/05/09 04:57:51 yokota Exp $"; + "$Id: kbdcontrol.c,v 1.26 1999/06/22 14:15:34 yokota Exp $"; #endif /* not lint */ #include @@ -794,6 +794,8 @@ set_bell_values(char *opt) bell |= 1; else if (!strcmp(opt, "normal")) duration = 5, pitch = 800; + else if (!strcmp(opt, "off")) + duration = 0, pitch = 0; else { char *v1; -- cgit v1.1