Pterm and Beep

Hi All,
I have two newbie questions about Pterm:

  1. does anybody know if there is a way to turn off the AUDIO bell in Pterm?
    (I find beeping programs are highly irritating).
  2. Is the source of Pterm available? I’d like to recompile and change a
    couple of things.

Thanks,


Luigi

Hi Luigi,

I spoke with one of the developers and here is some information for you:

Hope this helps
Regards
Brenda

LuigiG <reply@in.th.egroup.ok> wrote:

Hi All,
I have two newbie questions about Pterm:

  1. 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.

  1. 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.

Thanks,


Luigi

LuigiG <reply@in.th.egroup.ok> wrote:

  1. does anybody know if there is a way to turn off the AUDIO bell in Pterm?

I generally do this (as root)…

ln -sP /dev/null /dev/con1

…and it works like a charm. It only lasts until the machine is rebooted :wink:

chris

\

cdm@qnx.com > “The faster I go, the behinder I get.”

Chris McKillop – Lewis Carroll –
Software Engineer, QSSL
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<

Dear All,
many thanks for the help!
Cheers,

Luigi


“LuigiG” <reply@in.th.egroup.ok> wrote in message
news:9vo4eu$9bp$1@inn.qnx.com

Hi All,
I have two newbie questions about Pterm:

  1. does anybody know if there is a way to turn off the AUDIO bell in
    Pterm?
    (I find beeping programs are highly irritating).
  2. Is the source of Pterm available? I’d like to recompile and change a
    couple of things.

Thanks,


Luigi