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

NAME

6       set_form_opts,  form_opts_on,  form_opts_off,  form_opts  - set and get
7       form options
8

SYNOPSIS

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

DESCRIPTION

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

RETURN VALUE

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

SEE ALSO

49       curses(3X), form(3X).
50

NOTES

52       The  header  file  <form.h>  automatically  includes  the  header  file
53       <curses.h>.
54

PORTABILITY

56       These routines emulate the System V forms library.  They were not  sup‐
57       ported on Version 7 or BSD versions.
58

AUTHORS

60       Juergen Pfeifer.  Manual pages and adaptation for new curses by Eric S.
61       Raymond.
62
63
64
65                                                                 form_opts(3X)
Impressum