does anybody know if there is a way to turn off the AUDIO bell in Pterm?
(I find beeping programs are highly irritating).
The pterm tries to open /dev/con1 for writing, and if that works, write
a ‘\a’ to it. Any of the following works:
Don’t run a console driver, or tell it to create your consoles with
different names (e.g. /dev/ansi1, or start from /dev/con2).
Chmod /dev/con1 so that it can’t be opened.
Reprogram the frequency to something inaudible like 10Hz (the
console driver only turns the sound on and off AFAIK – but maybe
this is only true under QNX4…). Under QNX, you would use the
sound() function to do that, but I don’t think there’s a similar
function under QNX6 – you’d have to do all the necessary I/O
yourself.
Is the source of Pterm available? I’d like to recompile and change a
couple of things.
No, but pterm isn’t much more than just a PtTty widget in a window.
Most of pterm’s code has to do with parsing command-line options,
saving and reading configuration files, and figuring out what should be
displayed on the title bar.