diff options
author | yokota <yokota@FreeBSD.org> | 1999-07-22 14:19:14 +0000 |
---|---|---|
committer | yokota <yokota@FreeBSD.org> | 1999-07-22 14:19:14 +0000 |
commit | 877b1230e9647cbd55acc8b8b27d506857d387fd (patch) | |
tree | b8dfcb3e0ac492e8c592213cc9d79211253ab794 | |
parent | 4f4f7569f6e2e4db54f175e210d369339adb1510 (diff) | |
download | FreeBSD-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
-rw-r--r-- | usr.sbin/kbdcontrol/kbdcontrol.1 | 8 | ||||
-rw-r--r-- | usr.sbin/kbdcontrol/kbdcontrol.c | 4 |
2 files changed, 8 insertions, 4 deletions
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 <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; |