lkml.org 
[lkml]   [1997]   [Jan]   [9]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: to beep or not to beep...
> I know that's bash's part not to beep on errors but I think that would be
> useful to implement an ioctl (or something, I don't know the kernel's
> internals) to allow a user program to control whether the programs can
> beep or not. I've looked at the termcap file too, but all I've found was
> the choice between visual or audible bell. I couldn't find out how to tell
> the system that I don't want either.

If you don't mind coding a quick hack, you could modify the beep
routine _kd_mksound in drivers/char/vt.c to have a conditional keyed
on an integer variable and then stuff that integer variable into a
sysctl entry in kernel/sysctl.c so that you could just use the
/proc/sys interface to turn beeping on and off. Of course, they may be
an ioctl but beats me ...

Tom

\
 
 \ /
  Last update: 2005-03-22 13:38    [W:0.024 / U:1.584 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site