summaryrefslogtreecommitdiffstats
path: root/usr.sbin/kbdcontrol/kbdcontrol.c
diff options
context:
space:
mode:
authoryokota <yokota@FreeBSD.org>1999-07-22 14:19:14 +0000
committeryokota <yokota@FreeBSD.org>1999-07-22 14:19:14 +0000
commit877b1230e9647cbd55acc8b8b27d506857d387fd (patch)
treeb8dfcb3e0ac492e8c592213cc9d79211253ab794 /usr.sbin/kbdcontrol/kbdcontrol.c
parent4f4f7569f6e2e4db54f175e210d369339adb1510 (diff)
downloadFreeBSD-src-877b1230e9647cbd55acc8b8b27d506857d387fd.zip
FreeBSD-src-877b1230e9647cbd55acc8b8b27d506857d387fd.tar.gz
- 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
Diffstat (limited to 'usr.sbin/kbdcontrol/kbdcontrol.c')
-rw-r--r--usr.sbin/kbdcontrol/kbdcontrol.c4
1 files changed, 3 insertions, 1 deletions
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 <ctype.h>
@@ -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;
OpenPOWER on IntegriCloud