Lines Matching refs:el

48 el_getc(EditLine *el, char *cp)  in el_getc()  argument
53 if (!(el->el_flags & CHARSET_IS_UTF8)) in el_getc()
54 el->el_flags |= IGNORE_EXTCHARS; in el_getc()
55 num_read = el_wgetc (el, &wc); in el_getc()
56 if (!(el->el_flags & CHARSET_IS_UTF8)) in el_getc()
57 el->el_flags &= ~IGNORE_EXTCHARS; in el_getc()
66 el_push(EditLine *el, const char *str) in el_push() argument
70 el_wpush(el, ct_decode_string(str, &el->el_lgcyconv)); in el_push()
75 el_gets(EditLine *el, int *nread) in el_gets() argument
79 el->el_flags |= IGNORE_EXTCHARS; in el_gets()
80 tmp = el_wgets(el, nread); in el_gets()
81 el->el_flags &= ~IGNORE_EXTCHARS; in el_gets()
82 return ct_encode_string(tmp, &el->el_lgcyconv); in el_gets()
87 el_parse(EditLine *el, int argc, const char *argv[]) in el_parse() argument
93 ct_decode_argv(argc, argv, &el->el_lgcyconv); in el_parse()
96 ret = el_wparse(el, argc, wargv); in el_parse()
104 el_set(EditLine *el, int op, ...) in el_set() argument
109 if (!el) in el_set()
117 ret = prompt_set(el, p, 0, op, 0); in el_set()
124 ret = ch_resizefun(el, p, arg); in el_set()
129 ret = el_wset(el, op, va_arg(ap, char *)); in el_set()
133 ret = el_wset(el, op, ct_decode_string(va_arg(ap, char *), in el_set()
134 &el->el_lgcyconv)); in el_set()
141 ret = el_wset(el, op, va_arg(ap, int)); in el_set()
157 ct_decode_argv(i + 1, argv, &el->el_lgcyconv); in el_set()
170 ret = map_bind(el, i, wargv); in el_set()
174 ret = terminal_telltc(el, i, wargv); in el_set()
178 ret = terminal_settc(el, i, wargv); in el_set()
182 ret = terminal_echotc(el, i, wargv); in el_set()
186 ret = tty_stty(el, i, wargv); in el_set()
205 wargv = ct_decode_argv(2, args, &el->el_lgcyconv); in el_set()
211 ret = map_addfunc(el, Strdup(wargv[0]), Strdup(wargv[1]), in el_set()
219 ret = hist_set(el, fun, ptr); in el_set()
220 el->el_flags |= NARROW_HISTORY; in el_set()
225 ret = el_wset(el, op, va_arg(ap, el_rfunc_t)); in el_set()
226 el->el_flags |= NARROW_READ; in el_set()
229 ret = el_wset(el, op, va_arg(ap, void *)); in el_set()
234 ret = el_wset(el, op, what, fp); in el_set()
241 ret = prompt_set(el, p, c, op, 0); in el_set()
256 el_get(EditLine *el, int op, ...) in el_get() argument
261 if (!el) in el_get()
270 ret = prompt_get(el, p, 0, op); in el_get()
279 ret = prompt_get(el, p, &wc, op); in el_get()
287 ret = el_wget(el, op, &pw); in el_get()
288 *p = ct_encode_string(pw, &el->el_lgcyconv); in el_get()
289 if (!el->el_lgcyconv.csize) in el_get()
295 ret = el_wget(el, op, va_arg(ap, const char **)); in el_get()
302 ret = el_wget(el, op, va_arg(ap, int *)); in el_get()
313 ret = terminal_gettc(el, i, argv); in el_get()
319 ret = el_wget(el, op, va_arg(ap, el_rfunc_t *)); in el_get()
323 ret = el_wget(el, op, va_arg(ap, void **)); in el_get()
329 ret = el_wget(el, op, what, fpp); in el_get()
344 el_line(EditLine *el) in el_line() argument
346 const LineInfoW *winfo = el_wline(el); in el_line()
347 LineInfo *info = &el->el_lgcylinfo; in el_line()
351 info->buffer = ct_encode_string(winfo->buffer, &el->el_lgcyconv); in el_line()
368 el_insertstr(EditLine *el, const char *str) in el_insertstr() argument
370 return el_winsertstr(el, ct_decode_string(str, &el->el_lgcyconv)); in el_insertstr()