- 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
This commit is contained in:
parent
5ff3afce6f
commit
39c33d76ab
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=48982
@ -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
|
||||
|
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user