1EDITLINE(3)              BSD Library Functions Manual              EDITLINE(3)
2

NAME

4     editline, el_init, el_init_fd, el_end, el_reset, el_gets, el_wgets,
5     el_getc, el_wgetc, el_push, el_wpush, el_parse, el_wparse, el_set,
6     el_wset, el_get, el_wget, el_source, el_resize, el_cursor, el_line,
7     el_wline, el_insertstr, el_winsertstr, el_deletestr, el_wdeletestr,
8     history_init, history_winit, history_end, history_wend, history,
9     history_w, tok_init, tok_winit, tok_end, tok_wend, tok_reset, tok_wreset,
10     tok_line, tok_wline, tok_str, tok_wstr — line editor, history and tok‐
11     enization functions
12

LIBRARY

14     Command Line Editor Library (libedit, -ledit)
15

SYNOPSIS

17     #include <histedit.h>
18
19     EditLine *
20     el_init(const char *prog, FILE *fin, FILE *fout, FILE *ferr);
21
22     EditLine *
23     el_init_fd(const char *prog, FILE *fin, FILE *fout, FILE *ferr, int fdin,
24         int fdout, int fderr);
25
26     void
27     el_end(EditLine *e);
28
29     void
30     el_reset(EditLine *e);
31
32     const char *
33     el_gets(EditLine *e, int *count);
34
35     const wchar_t *
36     el_wgets(EditLine *e, int *count);
37
38     int
39     el_getc(EditLine *e, char *ch);
40
41     int
42     el_wgetc(EditLine *e, wchar_t *wc);
43
44     void
45     el_push(EditLine *e, const char *mbs);
46
47     void
48     el_wpush(EditLine *e, const wchar_t *wcs);
49
50     int
51     el_parse(EditLine *e, int argc, const char *argv[]);
52
53     int
54     el_wparse(EditLine *e, int argc, const wchar_t *argv[]);
55
56     int
57     el_set(EditLine *e, int op, ...);
58
59     int
60     el_wset(EditLine *e, int op, ...);
61
62     int
63     el_get(EditLine *e, int op, ...);
64
65     int
66     el_wget(EditLine *e, int op, ...);
67
68     int
69     el_source(EditLine *e, const char *file);
70
71     void
72     el_resize(EditLine *e);
73
74     int
75     el_cursor(EditLine *e, int count);
76
77     const LineInfo *
78     el_line(EditLine *e);
79
80     const LineInfoW *
81     el_wline(EditLine *e);
82
83     int
84     el_insertstr(EditLine *e, const char *str);
85
86     int
87     el_winsertstr(EditLine *e, const wchar_t *str);
88
89     void
90     el_deletestr(EditLine *e, int count);
91
92     void
93     el_wdeletestr(EditLine *e, int count);
94
95     History *
96     history_init(void);
97
98     HistoryW *
99     history_winit(void);
100
101     void
102     history_end(History *h);
103
104     void
105     history_wend(HistoryW *h);
106
107     int
108     history(History *h, HistEvent *ev, int op, ...);
109
110     int
111     history_w(HistoryW *h, HistEventW *ev, int op, ...);
112
113     Tokenizer *
114     tok_init(const char *IFS);
115
116     TokenizerW *
117     tok_winit(const wchar_t *IFS);
118
119     void
120     tok_end(Tokenizer *t);
121
122     void
123     tok_wend(TokenizerW *t);
124
125     void
126     tok_reset(Tokenizer *t);
127
128     void
129     tok_wreset(TokenizerW *t);
130
131     int
132     tok_line(Tokenizer *t, const LineInfo *li, int *argc,