form_field_info.3x 4.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  1. '\" t
  2. .\"***************************************************************************
  3. .\" Copyright (c) 1998-2005,2006 Free Software Foundation, Inc. *
  4. .\" *
  5. .\" Permission is hereby granted, free of charge, to any person obtaining a *
  6. .\" copy of this software and associated documentation files (the *
  7. .\" "Software"), to deal in the Software without restriction, including *
  8. .\" without limitation the rights to use, copy, modify, merge, publish, *
  9. .\" distribute, distribute with modifications, sublicense, and/or sell *
  10. .\" copies of the Software, and to permit persons to whom the Software is *
  11. .\" furnished to do so, subject to the following conditions: *
  12. .\" *
  13. .\" The above copyright notice and this permission notice shall be included *
  14. .\" in all copies or substantial portions of the Software. *
  15. .\" *
  16. .\" THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS *
  17. .\" OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF *
  18. .\" MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. *
  19. .\" IN NO EVENT SHALL THE ABOVE COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, *
  20. .\" DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR *
  21. .\" OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR *
  22. .\" THE USE OR OTHER DEALINGS IN THE SOFTWARE. *
  23. .\" *
  24. .\" Except as contained in this notice, the name(s) of the above copyright *
  25. .\" holders shall not be used in advertising or otherwise to promote the *
  26. .\" sale, use or other dealings in this Software without prior written *
  27. .\" authorization. *
  28. .\"***************************************************************************
  29. .\"
  30. .\" $Id: form_field_info.3x,v 1.10 2006/11/04 17:14:31 tom Exp $
  31. .TH form_field_info 3X ""
  32. .SH NAME
  33. \fBform_field_info\fR - retrieve field characteristics
  34. .SH SYNOPSIS
  35. \fB#include <form.h>\fR
  36. .br
  37. int field_info(const FIELD *field, int *rows, int *cols,
  38. int *frow, int *fcol, int *nrow, int *nbuf);
  39. .br
  40. int dynamic_field_info(const FIELD *field, int *rows, int *cols, int *max);
  41. .br
  42. .SH DESCRIPTION
  43. The function \fBfield_info\fR returns the sizes and other attributes passed in
  44. to the field at its creation time. The attributes are: height, width, row of
  45. upper-left corner, column of upper-left corner, number off-screen rows, and
  46. number of working buffers.
  47. .PP
  48. The function \fBdynamic_field_info\fR returns the actual size of the field, and
  49. its maximum possible size. If the field has no size limit, the location
  50. addressed by the third argument will be set to 0.
  51. A field can be made dynamic
  52. by turning off the \fBO_STATIC\fR option with \fBfield_opts_off\fR.
  53. .SH RETURN VALUE
  54. These routines return one of the following:
  55. .TP 5
  56. .B E_OK
  57. The routine succeeded.
  58. .TP 5
  59. .B E_SYSTEM_ERROR
  60. System error occurred (see \fBerrno\fR).
  61. .TP 5
  62. .B E_BAD_ARGUMENT
  63. Routine detected an incorrect or out-of-range argument.
  64. .SH SEE ALSO
  65. \fBcurses\fR(3X) and related pages whose names begin "form_" for detailed
  66. descriptions of the entry points.
  67. .SH NOTES
  68. The header file \fB<form.h>\fR automatically includes the header file
  69. \fB<curses.h>\fR.
  70. .SH PORTABILITY
  71. These routines emulate the System V forms library. They were not supported on
  72. Version 7 or BSD versions.
  73. .PP
  74. A null (zero pointer) is accepted for any of the return values,
  75. to ignore that value.
  76. Not all implementations allow this, e.g., Solaris 2.7 does not.
  77. .SH AUTHORS
  78. Juergen Pfeifer. Manual pages and adaptation for new curses by Eric
  79. S. Raymond.
  80. .\"#
  81. .\"# The following sets edit modes for GNU EMACS
  82. .\"# Local Variables:
  83. .\"# mode:nroff
  84. .\"# fill-column:79
  85. .\"# End: