H49829 s 00122/00000/00000 d D 1.1 02/05/02 15:35:04 root 2 1 cC cF1 cK16669 cO-rw-rw-r-- e s 00000/00000/00000 d D 1.0 02/05/02 15:35:04 root 1 0 c BitKeeper file /Mastodon/Core/Build/ncurses/Ada95/html/form_field_buffer.3x.html cBor@egypt.pell.portland.or.us|ChangeSet|20020502223039|07086|e73225ae258b78f8 cHegypt.pell.portland.or.us cK27432 cPAda95/html/form_field_buffer.3x.html cR94a2f38d3b7bd4a cV4 cX0x821 cZ-07:00 e u U f e 0 f x 0x821 t T I 2
form_field_buffer - field buffer control
#include <form.h> int set_field_buffer(FIELD *field, int buf, const char *value); char *field_buffer(const FIELD *field, int buffer); int set_field_status(FIELD *field, bool status); bool field_status(const FIELD *field); int set_max_field(FIELD *field, int max);
The function set_field_buffer sets the numbered buffer of the given field to contain a given string. Buffer 0 is the displayed value of the field; other numbered buffers may be allocated by applications through the nbuf argument of (see field_new(3X)) but are not manipulated by the forms library. The function field_buffer returns the foreground attribute. The function set_field_status sets the associated status flag of field; field_status gets the current value. The status flag is set to a nonzero value whenever the field changes. The function set_max_field sets the maximum size for a dynamic field. An argument of 0 turns off any maximum size threshold for that field.
The field_buffer function returns NULL on error. The field_status function returns TRUE or FALSE. The remaining routines return one of the following: E_OK The routine succeeded. E_SYSTEM_ERROR System error occurred (see errno). E_BAD_ARGUMENT Routine detected an incorrect or out-of-range argu- ment.
curses(3X) and 3X pages whose names begin "form_" for detailed descriptions of the entry points.
The header file <form.h> automatically includes the header file <curses.h>. These routines emulate the System V forms library. They were not supported on Version 7 or BSD versions.
Juergen Pfeifer. Manual pages and adaptation for new curses by Eric S. Raymond.E 2 I 1 E 1