1form_opts(3X)                                                    form_opts(3X)
2
3
4

NAME

6       form_opts - set and get form options
7

SYNOPSIS

9       #include <form.h>
10       int set_form_opts(FORM *form, Field_Options opts);
11       int form_opts_on(FORM *form, Field_Options opts);
12       int form_opts_off(FORM *form, Field_Options opts);
13       Field_Options form_opts(const FORM *form);
14

DESCRIPTION

16       The  function set_form_opts sets all the given form's option bits (form
17       option bits may be logically-OR'ed together).
18
19       The function form_opts_on turns on the given option  bits,  and  leaves
20       others alone.
21
22       The  function form_opts_off turns off the given option bits, and leaves
23       others alone.
24
25       The function form_opts returns the form's current option bits.
26
27       The following options are defined (all are on by default):
28
29       O_NL_OVERLOAD
30            Overload the REQ_NEW_LINE forms driver request so that calling  it
31            at the end of a field goes to the next field.
32
33       O_BS_OVERLOAD
34            Overload  the REQ_DEL_PREV forms driver request so that calling it
35            at the beginning of a field goes to the previous field.
36

RETURN VALUE

38       Except for form_opts, each routine returns one of the following:
39
40       E_OK The routine succeeded.
41
42       E_SYSTEM_ERROR
43            System error occurred (see errno).
44

SEE ALSO

46       curses(3X), form(3X).
47

NOTES

49       The  header  file  <form.h>  automatically  includes  the  header  file
50       <curses.h>.
51

PORTABILITY

53       These  routines emulate the System V forms library.  They were not sup‐
54       ported on Version 7 or BSD versions.
55

AUTHORS

57       Juergen Pfeifer.  Manual pages and adaptation for new curses by Eric S.
58       Raymond.
59
60
61
62                                                                 form_opts(3X)
Impressum