]> ncurses.scripts.mit.edu Git - ncurses.git/blobdiff - man/form_fieldtype.3x
ncurses 6.4 - patch 20240420
[ncurses.git] / man / form_fieldtype.3x
index 730ebc91073e115d79444bc628da27b3bfc4c451..81a58b1d8e48f24beb1bbc38d700d6ffaec73e09 100644 (file)
@@ -1,6 +1,5 @@
-'\" t
 .\"***************************************************************************
-.\" Copyright 2018-2022,2023 Thomas E. Dickey                                *
+.\" Copyright 2018-2023,2024 Thomas E. Dickey                                *
 .\" Copyright 1998-2006,2010 Free Software Foundation, Inc.                  *
 .\"                                                                          *
 .\" Permission is hereby granted, free of charge, to any person obtaining a  *
 .\" authorization.                                                           *
 .\"***************************************************************************
 .\"
-.\" $Id: form_fieldtype.3x,v 1.35 2023/07/01 15:46:10 tom Exp $
+.\" $Id: form_fieldtype.3x,v 1.46 2024/03/16 15:35:01 tom Exp $
+.TH form_fieldtype 3X 2024-03-16 "ncurses @NCURSES_MAJOR@.@NCURSES_MINOR@" "Library calls"
 .de bP
 .ie n  .IP \(bu 4
 .el    .IP \(bu 2
 ..
-.TH form_fieldtype 3X 2023-07-01 "ncurses 6.4" "Library calls"
 .SH NAME
-\fBform_fieldtype\fP \- define validation-field types
+\fBform_fieldtype\fP \-
+define validation-field types
 .SH SYNOPSIS
-\fB#include <form.h>\fP
-.sp
-\fBFIELDTYPE *new_fieldtype(\fP
+.nf
+\fB#include <form.h>
+.PP
+\fBFIELDTYPE *new_fieldtype(
     \fBbool (* const \fIfield_check\fB)(FIELD *, const void *),\fR
     \fBbool (* const \fIchar_check\fB)(int, const void *));\fR
-.br
 \fBint free_fieldtype(FIELDTYPE *\fIfieldtype\fB);\fR
-.sp
+.PP
 \fBint set_fieldtype_arg(\fP
     \fBFIELDTYPE *\fIfieldtype\fB,\fR
     \fBvoid *(* const \fImake_arg\fB)(va_list *),\fR
     \fBvoid *(* const \fIcopy_arg\fB)(const void *),\fR
     \fBvoid  (* const \fIfree_arg\fB)(void *));\fR
-.br
 \fBint set_fieldtype_choice(\fP
     \fBFIELDTYPE *\fIfieldtype\fB,\fR
     \fBbool (* const \fInext_choice\fB)(FIELD *, const void *),\fR
     \fBbool (* const \fIprev_choice\fB)(FIELD *, const void *));\fR
-.sp
+.PP
 \fBFIELDTYPE *link_fieldtype(FIELDTYPE *\fItype1\fB,\fR
                           \fBFIELDTYPE *\fItype2\fB);\fR
+.fi
 .SH DESCRIPTION
 .SS new_fieldtype
 The function \fBnew_fieldtype\fP creates a new field type usable for data
@@ -150,13 +150,6 @@ The field is the current field.
 .TP 5
 .B E_SYSTEM_ERROR
 System error occurred (see \fBerrno\fP(3)).
-.SH SEE ALSO
-\fBcurses\fP(3X),
-\fBform\fP(3X),
-\fBform_field_validation\fP(3X).
-.SH NOTES
-The header file \fB<form.h>\fP automatically includes the header file
-\fB<curses.h>\fP.
 .SH PORTABILITY
 These routines emulate the System V forms library.
 They were not supported on
@@ -164,3 +157,7 @@ Version 7 or BSD versions.
 .SH AUTHORS
 Juergen Pfeifer.
 Manual pages and adaptation for new curses by Eric S. Raymond.
+.SH SEE ALSO
+\fB\%curses\fP(3X),
+\fB\%form\fP(3X),
+\fB\%form_field_validation\fP(3X)