HomeSort by: relevance | last modified time | path
    Searched refs:el (Results 1 - 25 of 99) sorted by relevancy

1 2 3 4

  /src/lib/libedit/
common.c 50 #include "el.h"
62 ed_end_of_file(EditLine *el, wint_t c __attribute__((__unused__)))
65 re_goto_bottom(el);
66 *el->el_line.lastchar = '\0';
76 ed_insert(EditLine *el, wint_t c)
78 int count = el->el_state.argument;
83 if (el->el_line.lastchar + el->el_state.argument >=
84 el->el_line.limit) {
86 if (!ch_enlargebufs(el, (size_t) count)
    [all...]
emacs.c 49 #include "el.h"
59 em_delete_or_list(EditLine *el, wint_t c)
62 if (el->el_line.cursor == el->el_line.lastchar) {
64 if (el->el_line.cursor == el->el_line.buffer) {
66 terminal_writec(el, c); /* then do an EOF */
73 terminal_beep(el);
77 if (el->el_state.doingarg)
78 c_delafter(el, el->el_state.argument)
    [all...]
vi.c 54 #include "el.h"
67 cv_action(EditLine *el, wint_t c)
70 if (el->el_chared.c_vcmd.action != NOP) {
72 if (c != (wint_t)el->el_chared.c_vcmd.action)
76 cv_undo(el);
77 cv_yank(el, el->el_line.buffer,
78 (int)(el->el_line.lastchar - el->el_line.buffer));
79 el->el_chared.c_vcmd.action = NOP
    [all...]
hist.h 38 * el.hist.c: History functions
55 #define HIST_FUN_INTERNAL(el, fn, arg) \
56 ((((*(el)->el_history.fun) ((el)->el_history.ref, &(el)->el_history.ev, \
57 fn, arg)) == -1) ? NULL : (el)->el_history.ev.str)
58 #define HIST_FUN(el, fn, arg) \
59 (((el)->el_flags & NARROW_HISTORY) ? hist_convert(el, fn, arg) : \
60 HIST_FUN_INTERNAL(el, fn, arg)
    [all...]
search.c 55 #include "el.h"
62 #define EL_CURSOR(el) \
63 ((el)->el_line.cursor + (((el)->el_map.type == MAP_VI) && \
64 ((el)->el_map.current == (el)->el_map.alt)))
70 search_init(EditLine *el)
73 el->el_search.patbuf = el_calloc(EL_BUFSIZ,
74 sizeof(*el->el_search.patbuf));
75 if (el->el_search.patbuf == NULL
    [all...]
el.c 1 /* $NetBSD: el.c,v 1.102 2025/01/03 00:40:08 rillig Exp $ */
38 static char sccsid[] = "@(#)el.c 8.2 (Berkeley) 1/3/94";
40 __RCSID("$NetBSD: el.c,v 1.102 2025/01/03 00:40:08 rillig Exp $");
45 * el.c: EditLine interface functions
56 #include "el.h"
74 EditLine *el = el_calloc(1, sizeof(*el)); local in function:el_init_internal
76 if (el == NULL)
79 el->el_infile = fin;
80 el->el_outfile = fout
    [all...]
hist.c 51 #include "el.h"
57 hist_init(EditLine *el)
60 el->el_history.fun = NULL;
61 el->el_history.ref = NULL;
62 el->el_history.buf = el_calloc(EL_BUFSIZ, sizeof(*el->el_history.buf));
63 if (el->el_history.buf == NULL)
65 el->el_history.sz = EL_BUFSIZ;
66 el->el_history.last = el->el_history.buf
    [all...]
read.c 55 #include "el.h"
84 read_init(EditLine *el)
88 if ((el->el_read = el_malloc(sizeof(*el->el_read))) == NULL)
91 ma = &el->el_read->macros;
98 el->el_read->read_char = read_char;
101 read_end(el);
109 read_end(EditLine *el)
112 read_clearmacros(&el->el_read->macros);
113 el_free(el->el_read->macros.macro)
    [all...]
chared.c 51 #include "el.h"
62 cv_undo(EditLine *el)
64 c_undo_t *vu = &el->el_chared.c_undo;
65 c_redo_t *r = &el->el_chared.c_redo;
69 size = (size_t)(el->el_line.lastchar - el->el_line.buffer);
71 vu->cursor = (int)(el->el_line.cursor - el->el_line.buffer);
72 (void)memcpy(vu->buf, el->el_line.buffer, size * sizeof(*vu->buf));
75 r->count = el->el_state.doingarg ? el->el_state.argument : 0
    [all...]
refresh.c 52 #include "el.h"
66 #define __F el->el_errfile
79 re_printstr(EditLine *el, const char *str, wchar_t *f, wchar_t *t)
96 re_nextline(EditLine *el)
98 el->el_refresh.r_cursor.h = 0; /* reset it. */
106 if (el->el_refresh.r_cursor.v + 1 >= el->el_terminal.t_size.v) {
107 int i, lins = el->el_terminal.t_size.v;
108 wint_t *firstline = el->el_vdisplay[0];
111 el->el_vdisplay[i - 1] = el->el_vdisplay[i]
    [all...]
prompt.c 48 #include "el.h"
58 prompt_default(EditLine *el __attribute__((__unused__)))
71 prompt_default_r(EditLine *el __attribute__((__unused__)))
83 prompt_print(EditLine *el, int op)
89 elp = &el->el_prompt;
91 elp = &el->el_rprompt;
94 p = (*elp->p_func)(el);
96 p = ct_decode_string((char *)(void *)(*elp->p_func)(el),
97 &el->el_scratch);
108 re_putliteral(el, litstart, p++)
    [all...]
terminal.c 84 #include "el.h"
96 #define GoodStr(a) (el->el_terminal.t_str[a] != NULL && \
97 el->el_terminal.t_str[a][0] != '\0')
98 #define Str(a) el->el_terminal.t_str[a]
99 #define Val(a) el->el_terminal.t_val[a]
233 terminal_setflags(EditLine *el)
236 if (el->el_tty.t_tabs)
260 (void) fprintf(el->el_errfile,
262 (void) fprintf(el->el_errfile,
266 (void) fprintf(el->el_errfile, "no clear EOL capability.\n")
    [all...]
keymacro.c 51 * el->el_keymacro.map)
58 * are in el->el_keymacro.map, adding the key "abc" will cause
69 #include "el.h"
73 * The Nodes of the el->el_keymacro.map. The el->el_keymacro.map is a
105 keymacro_init(EditLine *el)
108 el->el_keymacro.buf = el_calloc(KEY_BUFSIZ,
109 sizeof(*el->el_keymacro.buf));
110 if (el->el_keymacro.buf == NULL)
112 el->el_keymacro.map = NULL
    [all...]
eln.c 38 #include "el.h"
41 el_getc(EditLine *el, char *cp)
46 num_read = el_wgetc(el, &wc);
62 el_push(EditLine *el, const char *str)
66 el_wpush(el, ct_decode_string(str, &el->el_lgcyconv));
71 el_gets(EditLine *el, int *nread)
75 tmp = el_wgets(el, nread);
84 return ct_encode_string(tmp, &el->el_lgcyconv);
89 el_parse(EditLine *el, int argc, const char *argv[]
    [all...]
map.c 51 #include "el.h"
901 map_init(EditLine *el)
909 EL_ABORT((el->el_errfile, "Emacs map incorrect\n"));
911 EL_ABORT((el->el_errfile, "Vi command map incorrect\n"));
913 EL_ABORT((el->el_errfile, "Vi insert map incorrect\n"));
916 el->el_map.alt = el_calloc(N_KEYS, sizeof(*el->el_map.alt));
917 if (el->el_map.alt == NULL)
919 el->el_map.key = el_calloc(N_KEYS, sizeof(*el->el_map.key))
    [all...]
tty.c 54 #include "el.h"
474 tty_getty(EditLine *el, struct termios *t)
477 while ((rv = tcgetattr(el->el_infd, t)) == -1 && errno == EINTR)
486 tty_setty(EditLine *el, int action, const struct termios *t)
489 while ((rv = tcsetattr(el->el_infd, action, t)) == -1 && errno == EINTR)
498 tty_setup(EditLine *el)
500 int rst = (el->el_flags & NO_RESET) == 0;
502 if (el->el_flags & EDIT_DISABLED)
505 if (el->el_tty.t_initialized)
508 if (!isatty(el->el_outfd))
    [all...]
sig.c 52 #include "el.h"
119 sig_init(EditLine *el)
124 el->el_signal = el_malloc(sizeof(*el->el_signal));
125 if (el->el_signal == NULL)
128 nset = &el->el_signal->sig_set;
136 el->el_signal->sig_action[i].sa_handler = SIG_ERR;
137 el->el_signal->sig_action[i].sa_flags = 0;
138 sigemptyset(&el->el_signal->sig_action[i].sa_mask);
151 sig_end(EditLine *el)
    [all...]
filecomplete.c 49 #include "el.h"
195 escape_filename(EditLine * el, const char *filename, int single_match,
207 wchar_t *temp = el->el_line.buffer;
213 while (temp != el->el_line.cursor) {
219 (temp == el->el_line.buffer || temp[-1] != '\\'))
543 fn_display_match_list(EditLine * el, char **matches, size_t num, size_t width,
547 int screenwidth = el->el_terminal.t_size.h;
577 (void)fprintf(el->el_outfile, "%s%s%s",
580 (void)fprintf(el->el_outfile, "%-*s",
583 (void)fprintf(el->el_outfile, "\n")
    [all...]
literal.c 44 #include "el.h"
47 literal_init(EditLine *el)
49 el_literal_t *l = &el->el_literal;
55 literal_end(EditLine *el)
57 literal_clear(el);
61 literal_clear(EditLine *el)
63 el_literal_t *l = &el->el_literal;
78 literal_add(EditLine *el, const wchar_t *buf, const wchar_t *end, int *wp)
80 el_literal_t *l = &el->el_literal;
128 literal_get(EditLine *el, wint_t idx
    [all...]
  /src/distrib/syspkg/sets/base/base-locale-el/
Makefile 3 PKGBASE=base-locale-el
  /src/distrib/syspkg/sets/base/base-util_locale-el/
Makefile 3 PKGBASE=base-util_locale-el
  /src/usr.sbin/npf/npfctl/
npf_var.c 113 npf_element_t *el; local in function:npfvar_add_element
115 el = ecalloc(1, sizeof(*el));
116 el->e_data = ecalloc(1, len);
117 el->e_type = type;
118 memcpy(el->e_data, data, len);
122 vp->v_elements = el;
124 vp->v_last->e_next = el;
126 vp->v_last = el;
158 npfvar_free_elements(npf_element_t *el)
234 npf_element_t *el; local in function:npfvar_get_element
270 npf_element_t *el = npfvar_get_element(vp, idx, 0); local in function:npfvar_getfilt_data
287 npf_element_t *el = npfvar_get_element(vp, idx, 0); local in function:npfvar_getfilt_type
294 npf_element_t *el = npfvar_get_element(vp, idx, 0); local in function:npfvar_get_type
315 npf_element_t *el = npfvar_get_element(vp, idx, 0); local in function:npfvar_get_data
    [all...]
  /src/lib/libedit/TEST/
tc1.c 73 prompt(EditLine *el)
88 complete(EditLine *el, int ch)
93 const LineInfo *lf = el_line(el);
109 if (el_insertstr(el, &dp->d_name[len]) == -1)
124 EditLine *el = NULL; local in function:main
148 el = el_init(*argv, stdin, stdout, stderr);
150 el_set(el, EL_EDITOR, "vi"); /* Default editor is vi */
151 el_set(el, EL_SIGNAL, 1); /* Handle signals gracefully */
152 el_set(el, EL_PROMPT_ESC, prompt, '\1');/* Set the prompt function */
155 el_set(el, EL_HIST, history, hist)
    [all...]
wtc1.c 21 prompt(EditLine *el)
57 complete(EditLine *el, int ch)
63 const LineInfoW *lf = el_wline(el);
93 if (el_winsertstr(el, dir) == -1)
110 EditLine *el = NULL; local in function:main
133 el = el_init(argv[0], stdin, stdout, stderr);
135 el_wset(el, EL_EDITOR, L"vi"); /* Default editor is vi */
136 el_wset(el, EL_SIGNAL, 1); /* Handle signals gracefully */
137 el_wset(el, EL_PROMPT_ESC, prompt, '\1'); /* Set the prompt function */
139 el_wset(el, EL_HIST, history_w, hist); /* FIXME - history_w? *
    [all...]
  /src/share/mk/
bsd.endian.mk 18 ${MACHINE_ARCH:C/^.*el$/el/} == "el"

Completed in 21 milliseconds

1 2 3 4