Mail Archives: djgpp/2001/07/15/11:59:07
From: "Eli Zaretskii" <eliz AT is DOT elta DOT co DOT il>
[...]
> Moreover, the default SIGINT handler tries to unwind the stack,
which
> is one-way ticket to disaster when the stack isn't yours. And there
> are other possible complications, depending on what your code does,
> exactly.
i would guess that raise is attempting to unwind the stack; it's easy
to see why this would cause the chain of execution to go off into the
weeds.
> In other words: don't do that!
ok! =]
> Why don't you simply chain to the previous keyboard handler? That
> would do what you want, and do it safely, because the previous
handler
> is the one installed by the startup code, which generates SIGINT in
> any normal DJGPP application.
yes, that does work. unfortunately, all keypresses get passed through
to the default handler, and i get that annoying "keyboard buffer
overflow" noise out of the pc-speaker. any way to disable this, yet
still allow CTRL-C/CTRL-BREAK to pass through?
thanks for the help,
matthew.
- Raw text -