Mark up TRUE and FALSE.

This commit is contained in:
wiz 2004-11-24 12:42:51 +00:00
parent f039f78c3f
commit 20a78941e4
3 changed files with 31 additions and 15 deletions

View File

@ -1,4 +1,4 @@
.\" $NetBSD: form_data.3,v 1.7 2004/11/24 12:12:19 wiz Exp $
.\" $NetBSD: form_data.3,v 1.8 2004/11/24 12:42:51 wiz Exp $
.\"
.\" Copyright (c) 2001
.\" Brett Lymn - blymn@baea.com.au, brett_lymn@yahoo.com.au
@ -47,15 +47,22 @@
If there is data offscreen to the right of the current field of the
given form then
.Fn data_ahead
will return TRUE, otherwise FALSE is returned.
will return
.Dv TRUE ,
otherwise
.Dv FALSE
is returned.
Similarly, if there is
data offscreen to the left of the current field of the given form then
.Fn data_behind
will return TRUE.
will return
.Dv TRUE .
.Sh RETURN VALUES
If the condition is met then the functions will return TRUE, if there
If the condition is met then the functions will return
.Dv TRUE ,
if there
is an error or there is no data offscreen the functions will return
FALSE.
.Dv FALSE .
.Sh SEE ALSO
.Xr curses 3 ,
.Xr forms 3

View File

@ -1,4 +1,4 @@
.\" $NetBSD: form_fieldtype.3,v 1.9 2004/11/24 12:26:23 wiz Exp $
.\" $NetBSD: form_fieldtype.3,v 1.10 2004/11/24 12:42:51 wiz Exp $
.\"
.\" Copyright (c) 2001
.\" Brett Lymn - blymn@baea.com.au, brett_lymn@yahoo.com.au
@ -76,15 +76,19 @@ A new field type can be created by calling
.Fn new_fieldtype
which requires pointers to two functions which perform validation, the
.Fa field_check
function must validate the field contents and return TRUE if they are
acceptable and FALSE if they are not.
function must validate the field contents and return
.Dv TRUE
if they are acceptable and
.Dv FALSE
if they are not.
The
.Fa char_check
validates the character input into the field, this function will be
called for each character entered, if the character can be entered
into the field then
.Fa char_check
must return TRUE.
must return
.Dv TRUE .
Neither
.Fa field_check
nor
@ -114,8 +118,11 @@ specify the next and previous choice functions for the field type.
These functions must perform the necessary actions to select the next
or previous choice for the field, updating the field buffer if
necessary.
The choice functions must return TRUE if the function
succeeded and FALSE otherwise.
The choice functions must return
.Dv TRUE
if the function succeeded and
.Dv FALSE
otherwise.
.Sh RETURN VALUES
Functions returning pointers will return
.Dv NULL

View File

@ -1,4 +1,4 @@
.\" $NetBSD: form_new_page.3,v 1.8 2004/11/24 12:26:23 wiz Exp $
.\" $NetBSD: form_new_page.3,v 1.9 2004/11/24 12:42:51 wiz Exp $
.\"
.\" Copyright (c) 2001
.\" Brett Lymn - blymn@baea.com.au, brett_lymn@yahoo.com.au
@ -47,9 +47,11 @@
.Sh DESCRIPTION
The
.Fn new_page
function returns TRUE if the given field is the start of a new page,
otherwise it returns FALSE, the new page status of a field can be set
or unset using the
function returns
.Dv TRUE
if the given field is the start of a new page, otherwise it returns
.Dv FALSE ,
the new page status of a field can be set or unset using the
.Fn set_new_page
function.
.Sh RETURN VALUES