Hallo, dies ist ein Test.
PWD: /www/data-lst1/unixsoft/unixsoft/kaempfer/.public_html
Running in File Mode
Relative path: ./../../../../../../usr/./man/man3curses/form_hook.3curses
Real path: /usr/share/man/man3curses/form_hook.3curses
Zurück
'\" te .\" Copyright (c) 1989, AT&T. All rights reserved. .\" Portions Copyright (c) 1996, Oracle and/or its affiliates. All rights reserved. .TH form_hook 3CURSES "31 Dec 1996" "Oracle Solaris 11.4" "Curses Library Functions" .SH NAME form_hook, set_form_init, form_init, set_form_term, form_term, set_field_init, field_init, set_field_term, field_term \- assign application-specific routines for invocation by forms .SH SYNOPSIS .LP .nf \fBcc\fR [ \fIflag\fR... ] \fIfile\fR... \fB-lform\fR \fB-lcurses\fR [ \fIlibrary\fR... ] #include <form.h> \fBint\fR \fBset_form_init\fR(\fBFORM *\fR\fIform\fR, \fBvoid (*func)(FORM*)\fR); .fi .LP .nf \fBvoid\fR \fB(*form_init)\fR(\fBFORM *\fR\fIform\fR); .fi .LP .nf \fBint\fR \fBset_form_term\fR(\fBFORM *\fR\fIform\fR, \fBvoid (*func)(FORM*)\fR); .fi .LP .nf \fBvoid\fR \fB(*form_term)\fR(\fBFORM *\fR\fIform\fR); .fi .LP .nf \fBint\fR \fBset_field_init\fR(\fBFORM *\fR\fIform\fR, \fBvoid (*func)(FORM*)\fR); .fi .LP .nf \fBvoid\fR \fB(*field_init)\fR(\fBFORM *\fR\fIform\fR); .fi .LP .nf \fBint\fR \fBset_field_term\fR(\fBFORM *\fR\fIform\fR, \fBvoid (*func)(FORM*)\fR); .fi .LP .nf \fBvoid\fR \fB(*field_term)\fR(\fBFORM *\fR\fIform\fR); .fi .SH DESCRIPTION .sp .LP These routines allow the programmer to assign application specific routines to be executed automatically at initialization and termination points in the \fBforms\fR application. The user need not specify any application-defined initialization or termination routines at all, but they may be helpful for displaying messages or page numbers and other chores. .sp .LP \fBset_form_init()\fR assigns an application-defined initialization function to be called when the \fIform\fR is posted and just after a page change. \fBform_init()\fR returns a pointer to the initialization function, if any. .sp .LP \fBset_form_term()\fR assigns an application-defined function to be called when the \fIform\fR is unposted and just before a page change. \fBform_term()\fR returns a pointer to the function, if any. .sp .LP \fBset_field_init()\fR assigns an application-defined function to be called when the \fIform\fR is posted and just after the current field changes. \fBfield_init()\fR returns a pointer to the function, if any. .sp .LP \fBset_field_term()\fR assigns an application-defined function to be called when the \fIform\fR is unposted and just before the current field changes. \fBfield_term()\fR returns a pointer to the function, if any. .SH RETURN VALUES .sp .LP Routines that return pointers always return \fINULL\fR on error. Routines that return an integer return one of the following: .sp .ne 2 .mk .na \fBE_OK\fR .ad .RS 18n .rt The function returned successfully. .RE .sp .ne 2 .mk .na \fBE_SYSTEM_ERROR\fR .ad .RS 18n .rt System error. .RE .SH ATTRIBUTES .sp .LP See \fBattributes\fR(7) for descriptions of the following attributes: .sp .TS tab( ) box; cw(2.75i) |cw(2.75i) lw(2.75i) |lw(2.75i) . ATTRIBUTE TYPE ATTRIBUTE VALUE _ MT-Level Unsafe .TE .sp .SH SEE ALSO .sp .LP \fBcurses\fR(3CURSES), \fBforms\fR(3CURSES), \fBattributes\fR(7) .SH NOTES .sp .LP The header \fB<form.h>\fR automatically includes the headers \fB<eti.h>\fR and \fB<curses.h>\fR.