diff options
| author | Paul Richards <paul@FreeBSD.org> | 1995-01-30 02:41:29 +0000 |
|---|---|---|
| committer | Paul Richards <paul@FreeBSD.org> | 1995-01-30 02:41:29 +0000 |
| commit | 0d595e6acd57e9cadc2a1db0453ef7bd2c69f5a1 (patch) | |
| tree | 8104cfa8a2d39c88da1d4853f45a7db056097f1d /lib/libforms/forms.h | |
| parent | 31892b894c5528a801ecf6a2883bdf29ee31a319 (diff) | |
Notes
Diffstat (limited to 'lib/libforms/forms.h')
| -rw-r--r-- | lib/libforms/forms.h | 49 |
1 files changed, 39 insertions, 10 deletions
diff --git a/lib/libforms/forms.h b/lib/libforms/forms.h index 7b1bbf4da371..094ca7a2027d 100644 --- a/lib/libforms/forms.h +++ b/lib/libforms/forms.h @@ -1,15 +1,35 @@ -/* - * Copyright (c) 1995 Paul Richards. +/*- + * Copyright (c) 1995 + * Paul Richards. All rights reserved. * - * All rights reserved. + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions + * are met: + * 1. Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer, + * verbatim and that no modifications are made prior to this + * point in the file. + * 2. Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * 3. All advertising materials mentioning features or use of this software + * must display the following acknowledgement: + * This product includes software developed by Paul Richards. + * 4. The name Paul Richards may not be used to endorse or promote products + * derived from this software without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY PAUL RICHARDS ``AS IS'' AND + * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE + * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE + * ARE DISCLAIMED. IN NO EVENT SHALL PAUL RICHARDS BE LIABLE + * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL + * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS + * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) + * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT + * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY + * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF + * SUCH DAMAGE. * - * This software may be used, modified, copied, distributed, and - * sold, in both source and binary form provided that the above - * copyright and these terms are retained, verbatim, as the first - * lines of this file. Under no circumstances is the author - * responsible for the proper functioning of this software, nor does - * the author assume any responsibility for damages incurred with - * its use. */ #include <ncurses.h> @@ -26,14 +46,22 @@ #define F_DONE 1 #define F_CANCEL -1 +struct col_pair { + int f; + int b; +}; + struct form { int no_fields; + int start_field; int current_field; struct field *field; int height; int width; int y; int x; + int attr; + struct col_pair *color_table; WINDOW *window; }; @@ -68,6 +96,7 @@ struct field { int x; int width; int attr; + int selattr; int next; int up; int down; |
