bug-ncurses
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

ncurses and SIGINFO


From: BenV
Subject: ncurses and SIGINFO
Date: Tue, 8 Feb 2005 00:51:09 +0100
User-agent: Mutt/1.4.2.1i

Heia,

A friend recently pointed my towards the in my opinion useful
signal SIGINFO, which gives some status info in a bunch of FreeBSD
programs like fsck. (I just started out with FreeBSD ;))
This signal is normally sent by pressing ctrl-t, depending 
on your setup of course.

Anyway, we were hacking a bit through the systat sources to try to make
it do something useful on SIGINFO, but we ran into a little problem:
systat uses getch() to fetch it's keyboard input.
Since signals like SIGINT come through as a signal, I simply added a signal
handler for SIGINFO, compiled it, and: nothing happens. :)
Adding a keyboard event for ctrl-t did fix it, so it seems that curses 
completely ignores the whole SIGINFO deal. (sending the signal through
kill also works, so the handler code was ok).

Now my question:
Is this intentional? If so, can anyone tell me a portable way of determining
the siginfo/status key?

Thanks for reading.

Greetings,

BenV
-- 
\ address@hidden - http://www.junerules.com/ - ICQ: 6105111 \
 \_ ___ _________.___  _  ____  ___._________ .___  _  .. _______ .

Attachment: pgpaV8sGBhj02.pgp
Description: PGP signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]