SAFERHANGUP

This is an initial round of SAFERHANGUP hangup changes.  It introduces
SAFERHANGUP, provides the core framework, and enables it for UNIX.

Window-port changes are provided for win/tty, win/X11 and win/gnome.  Qt
changes should be forthcoming after having Warwick look at them.
window.doc is updated so windowport maintainers have an clue what needs to
be done to support SAFERHANGUP.
This commit is contained in:
cohrs
2003-09-19 03:15:49 +00:00
parent 1382c6c028
commit 40b5b12673
12 changed files with 178 additions and 42 deletions
+10
View File
@@ -120,6 +120,15 @@ int nhgetch() -- Returns a single character input from the user.
will be the routine the OS provides to read a character.
Returned character _must_ be non-zero and it must be
non meta-zero too (zero with the meta-bit set).
-- If platform uses it, should check program_state.done_hup
and immediately return ASCII 033 (escape) if it is.
This is required if the window-port supports SAFERHANGUP.
-- ASCII 033 must also be returned rather than EOF (applies
mainly to the tty window-port).
-- The program_state.done_hup flag can be set asynchronously
when SAFERHANGUP is defined and in that case, nhgetch()
needs to detect that the value of program_state.done_hup
changed and also return ASCII 033 in this case.
int nh_poskey(int *x, int *y, int *mod)
-- Returns a single character input from the user or a
a positioning event (perhaps from a mouse). If the
@@ -133,6 +142,7 @@ int nh_poskey(int *x, int *y, int *mod)
The different click types can map to whatever the
hardware supports. If no mouse is supported, this
routine always returns a non-zero character.
-- Otherwise follows the same behavior as nhgetch().
B. High-level routines: