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       int set_form_opts(FORM *form, Field_Options opts);
12       int form_opts_on(FORM *form, Field_Options opts);
13       int form_opts_off(FORM *form, Field_Options opts);
14       Field_Options form_opts(const FORM *form);
15

DESCRIPTION

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

RETURN VALUE

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

SEE ALSO

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

NOTES

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

PORTABILITY

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

AUTHORS

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