Curses Library Functions formfieldbuffer(3CURSES)
NAME
formfieldbuffer, setfieldbuffer, fieldbuffer,
setfieldstatus, fieldstatus, setmaxfield - set and get
forms field attributes
SYNOPSIS
cc [ flag... ] file... -lform -lcurses [ library... ]
#include
int setfieldbuffer(FIELD *field, int buf, char *value);
char *fieldbuffer(FIELD *field, int buf);
int setfieldstatus(FIELD *field, int status);
int fieldstatus(FIELD *field);
int setmaxfield(FIELD *field, int max);
DESCRIPTION
setfieldbuffer() sets buffer buf of field to value. Buffer
0 stores the displayed contents of the field. Buffers other
than 0 are application specific and not used by the forms
library routines. fieldbuffer() returns the value of field
buffer buf.
Every field has an associated status flag that is set when-
ever the contents of field buffer 0 changes.
setfieldstatus() sets the status flag of field to status.
fieldstatus() returns the status of field.
setmaxfield() sets a maximum growth on a dynamic field, or
if max=0 turns off any maximum growth.
RETURN VALUES
fieldbuffer() returns NUL on error.
fieldstatus() returns TRUE or FALSE.
setfieldbuffer(), setfieldstatus(), and setmaxfield()
return one of the following:
SunOS 5.11 Last change: 31 Dec 1996 1
Curses Library Functions formfieldbuffer(3CURSES)
EOK Thefunction returned successfully.
ESYSTEMEROR System error
EBADARGUMENT An argument is incorrect.
ATRIBUTES
See attributes(5) for descriptions of the following attri-
butes:
ATRIBUTE TYPE ATRIBUTE VALUE
MT-Level Unsafe
SEE ALSO
curses(3CURSES), forms(3CURSES), attributes(5)
NOTES
The header automatically includes the headers
and .
SunOS 5.11 Last change: 31 Dec 1996 2
|