Print this page
10067 Miscellaneous man page typos
Reviewed by: Robert Mustacchi <rm@joyent.com>
Reviewed by: Andy Fiddaman <andy@omniosce.org>
Reviewed by: Volker A. Brandt <vab@bb-c.de>

Split Close
Expand all
Collapse all
          --- old/usr/src/man/man3curses/form_field_new.3curses
          +++ new/usr/src/man/man3curses/form_field_new.3curses
↓ open down ↓ 25 lines elided ↑ open up ↑
  26   26  .nf
  27   27  \fBFIELD *\fR\fBlink_field\fR(\fBFIELD *\fR\fIfield\fR, \fBint\fR \fIfrow\fR, \fBint\fR \fIfcol\fR);
  28   28  .fi
  29   29  
  30   30  .LP
  31   31  .nf
  32   32  \fBint\fR \fBfree_field\fR(\fBFIELD *\fR\fIfield\fR);
  33   33  .fi
  34   34  
  35   35  .SH DESCRIPTION
  36      -.sp
  37   36  .LP
  38   37  \fBnew_field()\fR creates a new field with \fIr\fR rows and \fIc\fR columns,
  39   38  starting at \fIfrow\fR, \fIfcol\fR, in the subwindow of a form. \fInrow\fR is
  40   39  the number of off-screen rows and \fInbuf\fR is the number of additional
  41   40  working buffers. This routine returns a pointer to the new field.
  42   41  .sp
  43   42  .LP
  44   43  \fBdup_field()\fR duplicates \fIfield\fR at the specified location. All field
  45   44  attributes are duplicated, including the current contents of the field buffers.
  46   45  .sp
  47   46  .LP
  48   47  \fBlink_field()\fR also duplicates \fIfield\fR at the specified location.
  49   48  However, unlike \fBdup_field()\fR, the new field shares the field buffers with
  50   49  the original field. After creation, the attributes of the new field can be
  51   50  changed without affecting the original field.
  52   51  .sp
  53   52  .LP
  54   53  \fBfree_field()\fR frees the storage allocated for \fIfield\fR.
  55   54  .SH RETURN VALUES
  56      -.sp
  57   55  .LP
  58   56  Routines that return pointers return \fINULL\fR on error. \fBfree_field()\fR
  59   57  returns one of the following:
  60   58  .sp
  61   59  .ne 2
  62   60  .na
  63   61  \fBE_OK\fR
  64   62  .ad
  65   63  .RS 18n
  66      -Thefunction returned successfully.
       64 +The function returned successfully.
  67   65  .RE
  68   66  
  69   67  .sp
  70   68  .ne 2
  71   69  .na
  72   70  \fBE_CONNECTED\fR
  73   71  .ad
  74   72  .RS 18n
  75   73  The field is already connected to a form.
  76   74  .RE
↓ open down ↓ 10 lines elided ↑ open up ↑
  87   85  .sp
  88   86  .ne 2
  89   87  .na
  90   88  \fBE_BAD_ARGUMENT\fR
  91   89  .ad
  92   90  .RS 18n
  93   91  An argument is incorrect.
  94   92  .RE
  95   93  
  96   94  .SH ATTRIBUTES
  97      -.sp
  98   95  .LP
  99   96  See \fBattributes\fR(5) for descriptions of the following attributes:
 100   97  .sp
 101   98  
 102   99  .sp
 103  100  .TS
 104  101  box;
 105  102  c | c
 106  103  l | l .
 107  104  ATTRIBUTE TYPE  ATTRIBUTE VALUE
 108  105  _
 109  106  MT-Level        Unsafe
 110  107  .TE
 111  108  
 112  109  .SH SEE ALSO
 113      -.sp
 114  110  .LP
 115  111  \fBcurses\fR(3CURSES), \fBforms\fR(3CURSES), \fBattributes\fR(5)
 116  112  .SH NOTES
 117      -.sp
 118  113  .LP
 119  114  The header \fB<form.h>\fR automatically includes the headers  \fB<eti.h>\fR and
 120  115  \fB<curses.h>\fR\&.
    
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX