lkml.org 
[lkml]   [1997]   [Jan]   [9]   [last100]   RSS Feed
Views: [more markup]   [less markup]   [headers]   [forward]  
 
Messages in this thread
/
DateThu, 9 Jan 97 1:14:51 EST
FromTom Dyas <>
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 12:38    [from the cache]
©2003-2008