Lines Matching +full:const +full:- +full:op +full:- +full:mode

3 .\" Copyright (c) 1997-2014 The NetBSD Foundation, Inc.
81 .Fn el_init "const char *prog" "FILE *fin" "FILE *fout" "FILE *ferr"
83 .Fn el_init_fd "const char *prog" "FILE *fin" "FILE *fout" "FILE *ferr" "int fdin" "int fdout" "int…
97 .Fn el_push "EditLine *e" "const char *mbs"
99 .Fn el_wpush "EditLine *e" "const wchar_t *wcs"
101 .Fn el_parse "EditLine *e" "int argc" "const char *argv[]"
103 .Fn el_wparse "EditLine *e" "int argc" "const wchar_t *argv[]"
105 .Fn el_set "EditLine *e" "int op" "..."
107 .Fn el_wset "EditLine *e" "int op" "..."
109 .Fn el_get "EditLine *e" "int op" "..."
111 .Fn el_wget "EditLine *e" "int op" "..."
113 .Fn el_source "EditLine *e" "const char *file"
123 .Fn el_insertstr "EditLine *e" "const char *str"
125 .Fn el_winsertstr "EditLine *e" "const wchar_t *str"
139 .Fn history "History *h" "HistEvent *ev" "int op" "..."
141 .Fn history_w "HistoryW *h" "HistEventW *ev" "int op" "..."
143 .Fn tok_init "const char *IFS"
145 .Fn tok_winit "const wchar_t *IFS"
155 .Fn tok_line "Tokenizer *t" "const LineInfo *li" "int *argc" "const char **argv[]" "int *cursorc" "…
157 .Fn tok_wline "TokenizerW *t" "const LineInfoW *li" "int *argc" "const wchar_t **argv[]" "int *curs…
159 .Fn tok_str "Tokenizer *t" "const char *str" "int *argc" "const char **argv[]"
161 .Fn tok_wstr "TokenizerW *t" "const wchar_t *str" "int *argc" "const wchar_t **argv[]"
194 The wide-character functions behave the same way as their narrow
198 .Bl -tag -width 4n
243 is set to \-1 and
261 Returns 1 if a valid character was read, 0 on end of file, or \-1 on
270 and return 0 on end of file or \-1 on failure.
271 If the wide character can be represented as a single-byte character,
280 and return \-1.
282 locale, including UTF-8, this is rarely useful.
320 \-1 if the command is unknown,
332 .Fa op
335 Returns 0 on success, \-1 on failure.
338 .Fa op
340 .Bl -tag -width 4n
364 Re-display the current line on the next terminal line.
371 .It Dv EL_TERMINAL , Fa "const char *type"
380 .It Dv EL_EDITOR , Fa "const char *mode"
381 Set editing mode to
382 .Fa mode ,
390 is non-zero,
404 .It Dv EL_BIND , Fa "const char *" , Fa "..." , Dv NULL
411 .It Dv EL_ECHOTC , Fa "const char *" , Fa "..." , Dv NULL
418 .It Dv EL_SETTC , Fa "const char *" , Fa "..." , Dv NULL
425 .It Dv EL_SETTY , Fa "const char *" , Fa "..." , Dv NULL
432 .It Dv EL_TELLTC , Fa "const char *" , Fa "..." , Dv NULL
439 .It Dv EL_ADDFN , Fa "const char *name" , Fa "const char *help" , \
457 .Bl -tag -width "CC_REDISPLAY"
482 .It Dv EL_HIST , Fa "History *(*func)(History *, int op, ...)" , \
483 Fa "const char *ptr"
492 is non-zero,
506 unbuffered mode is disabled (the default).
507 In unbuffered mode,
513 argument is non-zero, then
516 error, and trying to reset the input file descriptor to reset non-blocking I/O.
519 is used in shell-like applications.
522 .Bd -ragged -offset indent -compact
531 and returns 1 on success, 0 on end of file, or \-1 on I/O or encoding
576 .Fa op
579 Returns 0 if successful, \-1 otherwise.
582 .Fa op
585 .Bl -tag -width 4n
604 .It Dv EL_EDITOR , Fa "const char **n"
611 .It Dv EL_GETTC , Fa "const char *name" , Fa "void *value"
622 to non-zero if
630 to non-zero if editing is enabled.
646 to non-zero if unbuffered mode is enabled.
650 to non-zero if safe read is set.
692 returns 0 on success and \-1 on error.
712 .Bd -literal
714 const char *buffer; /* address of buffer */
715 const char *cursor; /* address of cursor */
716 const char *lastchar; /* address of last character */
733 Returns \-1 if
750 .Bl -tag -width 4n
763 .Fa op
769 .Fa op
771 .Bl -tag -width 4n
807 .It Dv H_ADD , Fa "const char *str"
815 .It Dv H_APPEND , Fa "const char *str"
819 .It Dv H_ENTER , Fa "const char *str"
826 has been called with a non-zero argument, the element
834 returns \-1 if an error occurred.
835 .It Dv H_PREV_STR , Fa "const char *str"
838 .It Dv H_NEXT_STR , Fa "const char *str"
847 .It Dv H_LOAD , Fa "const char *file"
850 .It Dv H_SAVE , Fa "const char *file"
883 .Fa op
885 Otherwise, \-1 is returned and
898 .Bl -tag -width 4n
945 \-1 for an internal error,
986 .An -nosplit
1001 implemented wide-character support.