turning off the beep
Erik V. Smith
erikvsmith at fastmail.fm
Mon Jan 9 12:14:05 PST 2006
YONETANI Tomokazu wrote:
Anyway, it turned out that both `-b off' and '-b quiet.off' turns off
the bell for me, without or without the patch :-] Do you see something
if you change the line calling ioctl() to something below?
if (ioctl(0, CONS_BELLTYPE, &bell) == -1)
perror("CONS_BELLTYPE");
if ((bell & ~2) == 0)
fprintf(stderr, "\x1B[=%d;%dB", pitch, duration);
If so, you may have to dig into scioctl() to find where it's failing
to set flags or flash the screen.
thank you for the help, looks like I'm digging into scioctl() :
# kbdcontrol -b visual
CONS_BELLTYPE: Inappropriate ioctl for device
# kbdcontrol -b quiet.off
CONS_BELLTYPE: Inappropriate ioctl for device
More information about the Bugs
mailing list