X-Git-Url: https://ncurses.scripts.mit.edu/?a=blobdiff_plain;f=doc%2Fhtml%2Fman%2Fform_field_buffer.3x.html;h=ed9d832db4dbb5027bea2cf7c325bade24668643;hb=d1a029866f6d84087781eaa81de19949d8533426;hp=55eb6998cca1a5256835d7986740fea4e3e4b301;hpb=ed646e3f683083e787c6ba773364401dc9fa9d40;p=ncurses.git diff --git a/doc/html/man/form_field_buffer.3x.html b/doc/html/man/form_field_buffer.3x.html index 55eb6998..ed9d832d 100644 --- a/doc/html/man/form_field_buffer.3x.html +++ b/doc/html/man/form_field_buffer.3x.html @@ -1,7 +1,8 @@ -
- --form_field_buffer(3x) form_field_buffer(3x) +form_field_buffer(3x) Library calls form_field_buffer(3x) @@ -53,11 +54,13 @@
#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); + 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);
@@ -67,8 +70,8 @@ o Buffer 0 is the displayed value of the field. o Other numbered buffers may be allocated by applications through - the nbuf argument of (see form_field_new(3x)) but are not manip- - ulated by the forms library. + the nbuf argument of (see form_field_new(3x)) but are not + manipulated by the forms library. The function field_buffer returns a pointer to the contents of the given numbered buffer: @@ -102,8 +105,8 @@
- The field_buffer function returns NULL on error. It sets errno accord- - ing to their success: + The field_buffer function returns NULL on error. It sets errno + according to their success: E_OK The routine succeeded. @@ -117,7 +120,7 @@ E_OK The routine succeeded. E_SYSTEM_ERROR - System error occurred (see errno). + System error occurred (see errno(3)). E_BAD_ARGUMENT Routine detected an incorrect or out-of-range argument. @@ -132,14 +135,18 @@ The header file <form.h> automatically includes the header file When configured for wide characters, field_buffer returns a pointer to - temporary storage (allocated and freed by the library). The applica- - tion should not attempt to modify the data. It will be freed on the - next call to field_buffer to return the same buffer. <curses.h>. + temporary storage (allocated and freed by the library). The + application should not attempt to modify the data. It will be freed on + the next call to field_buffer to return the same buffer. <curses.h>.
- These routines emulate the System V forms library. They were not sup- - ported on Version 7 or BSD versions. + These routines emulate the System V forms library. They were not + supported on Version 7 or BSD versions. + + The set_max_field function checks for an ncurses extension + O_INPUT_FIELD which allows a dynamic field to shrink if the new limit + is smaller than the current field size.
@@ -148,7 +155,7 @@ - form_field_buffer(3x) +ncurses 6.4 2023-07-01 form_field_buffer(3x)