Home
last modified time | relevance | path

Searched refs:SCR (Results 1 – 25 of 123) sorted by relevance

12345

/freebsd/usr.bin/vi/
H A Dextern.h2 int cl_waddstr(SCR *, const CHAR_T *, size_t);
3 int cl_addstr(SCR *, const char *, size_t);
4 int cl_attr(SCR *, scr_attr_t, int);
5 int cl_baud(SCR *, u_long *);
6 int cl_bell(SCR *);
7 int cl_clrtoeol(SCR *);
8 int cl_cursor(SCR *, size_t *, size_t *);
9 int cl_deleteln(SCR *);
10 int cl_discard(SCR *, SCR **);
11 int cl_ex_adjust(SCR *, exadj_t);
[all …]
/freebsd/contrib/nvi/common/
H A Dgs.h60 SCR *ccl_sp; /* Colon command-line screen. */
143 int (*scr_addstr)(SCR *, const char *, size_t);
145 int (*scr_waddstr)(SCR *, const CHAR_T *, size_t);
147 int (*scr_attr)(SCR *, scr_attr_t, int);
149 int (*scr_baud)(SCR *, u_long *);
151 int (*scr_bell)(SCR *);
153 void (*scr_busy)(SCR *, const char *, busy_t);
155 int (*scr_child)(SCR *);
157 int (*scr_clrtoeol)(SCR *);
159 int (*scr_cursor)(SCR *, size_t *, size_t *);
[all …]
H A Doptions_f.c31 f_altwerase(SCR *sp, OPTION *op, char *str, u_long *valp) in f_altwerase()
42 f_columns(SCR *sp, OPTION *op, char *str, u_long *valp) in f_columns()
72 f_lines(SCR *sp, OPTION *op, char *str, u_long *valp) in f_lines()
125 f_lisp(SCR *sp, OPTION *op, char *str, u_long *valp) in f_lisp()
135 f_msgcat(SCR *sp, OPTION *op, char *str, u_long *valp) in f_msgcat()
145 f_print(SCR *sp, OPTION *op, char *str, u_long *valp) in f_print()
170 f_readonly(SCR *sp, OPTION *op, char *str, u_long *valp) in f_readonly()
187 f_recompile(SCR *sp, OPTION *op, char *str, u_long *valp) in f_recompile()
204 f_reformat(SCR *sp, OPTION *op, char *str, u_long *valp) in f_reformat()
214 f_ttywerase(SCR *sp, OPTION *op, char *str, u_long *valp) in f_ttywerase()
[all …]
H A Dscreen.c34 screen_init(GS *gp, SCR *orig, SCR **spp) in screen_init()
36 SCR *sp; in screen_init()
40 CALLOC_RET(orig, sp, 1, sizeof(SCR)); in screen_init()
128 screen_end(SCR *sp) in screen_end()
198 SCR *
199 screen_next(SCR *sp) in screen_next()
202 SCR *next; in screen_next()
H A Dmark.c25 static LMARK *mark_find(SCR *, ARG_CHAR_T);
65 mark_init(SCR *sp, EXF *ep) in mark_init()
84 mark_end(SCR *sp, EXF *ep) in mark_end()
106 mark_get(SCR *sp, ARG_CHAR_T key, MARK *mp, mtype_t mtype) in mark_get()
147 mark_set(SCR *sp, ARG_CHAR_T key, MARK *value, int userset) in mark_set()
185 mark_find(SCR *sp, ARG_CHAR_T key) in mark_find()
208 mark_insdel(SCR *sp, lnop_t op, recno_t lno) in mark_insdel()
H A Dlog.c63 static int log_cursor1(SCR *, int);
64 static void log_err(SCR *, char *, int);
66 static void log_trace(SCR *, char *, recno_t, u_char *);
68 static int apply_with(int (*)(SCR *, recno_t, CHAR_T *, size_t),
69 SCR *, recno_t, u_char *, size_t);
93 log_init(SCR *sp, EXF *ep) in log_init()
127 log_end(SCR *sp, EXF *ep) in log_end()
153 log_cursor(SCR *sp) in log_cursor()
180 log_cursor1(SCR *sp, int type) in log_cursor1()
216 log_line(SCR *sp, recno_t lno, u_int action) in log_line()
[all …]
H A Dkey.c29 static int v_event_append(SCR *, EVENT *);
30 static int v_event_grow(SCR *, int);
32 static void v_keyval(SCR *, int, scr_keyval_t);
33 static void v_sync(SCR *, int);
100 v_key_init(SCR *sp) in v_key_init()
145 v_keyval(SCR *sp, int val, scr_keyval_t name) in v_keyval()
179 v_key_ilookup(SCR *sp) in v_key_ilookup()
203 v_key_len(SCR *sp, ARG_CHAR_T ch) in v_key_len()
217 v_key_name(SCR *sp, ARG_CHAR_T ach) in v_key_name()
332 v_key_val(SCR *sp, ARG_CHAR_T ch) in v_key_val()
[all …]
H A Dconv.c50 raw2int(SCR *sp, const char * str, ssize_t len, CONVWIN *cw, size_t *tolen, in raw2int()
101 default_char2int(SCR *sp, const char * str, ssize_t len, CONVWIN *cw, in default_char2int()
155 fe_char2int(SCR *sp, const char * str, ssize_t len, CONVWIN *cw, size_t *tolen, in fe_char2int()
163 ie_char2int(SCR *sp, const char * str, ssize_t len, CONVWIN *cw, size_t *tolen, in ie_char2int()
171 cs_char2int(SCR *sp, const char * str, ssize_t len, CONVWIN *cw, size_t *tolen, in cs_char2int()
178 int2raw(SCR *sp, const CHAR_T * str, ssize_t len, CONVWIN *cw, size_t *tolen, in int2raw()
197 default_int2char(SCR *sp, const CHAR_T * str, ssize_t len, CONVWIN *cw, in default_int2char()
292 fe_int2char(SCR *sp, const CHAR_T * str, ssize_t len, CONVWIN *cw, in fe_int2char()
300 cs_int2char(SCR *sp, const CHAR_T * str, ssize_t len, CONVWIN *cw, in cs_int2char()
315 conv_init(SCR *orig, SCR *sp) in conv_init()
[all …]
/freebsd/contrib/nvi/vi/
H A Dv_ex.c26 static int v_ecl(SCR *);
27 static int v_ecl_init(SCR *);
28 static int v_ecl_log(SCR *, TEXT *);
29 static int v_ex_done(SCR *, VICMD *);
30 static int v_exec_ex(SCR *, VICMD *, EXCMD *);
39 v_again(SCR *sp, VICMD *vp) in v_again()
55 v_exmode(SCR *sp, VICMD *vp) in v_exmode()
91 v_join(SCR *sp, VICMD *vp) in v_join()
120 v_shiftl(SCR *sp, VICMD *vp) in v_shiftl()
136 v_shiftr(SCR *sp, VICMD *vp) in v_shiftr()
[all …]
H A Dv_scroll.c66 v_lgoto(SCR *sp, VICMD *vp) in v_lgoto()
103 v_home(SCR *sp, VICMD *vp) in v_home()
120 v_middle(SCR *sp, VICMD *vp) in v_middle()
141 v_bottom(SCR *sp, VICMD *vp) in v_bottom()
204 v_up(SCR *sp, VICMD *vp) in v_up()
226 v_cr(SCR *sp, VICMD *vp) in v_cr()
247 v_down(SCR *sp, VICMD *vp) in v_down()
268 v_hpageup(SCR *sp, VICMD *vp) in v_hpageup()
292 v_hpagedown(SCR *sp, VICMD *vp) in v_hpagedown()
320 v_pagedown(SCR *sp, VICMD *vp) in v_pagedown()
[all …]
H A Dvs_split.c28 static SCR *vs_getbg(SCR *, char *);
29 static void vs_insert(SCR *sp, GS *gp);
30 static int vs_join(SCR *, SCR **, jdir_t *);
40 SCR *sp, in vs_split()
41 SCR *new, in vs_split()
204 vs_vsplit(SCR *sp, SCR *new) in vs_vsplit()
294 vs_insert(SCR *sp, GS *gp) in vs_insert()
296 SCR *tsp; in vs_insert()
333 vs_discard(SCR *sp, SCR **spp) in vs_discard()
336 SCR *tsp, **lp, *list[100]; in vs_discard()
[all …]
H A Dv_ch.c24 static void notfound(SCR *, ARG_CHAR_T);
25 static void noprev(SCR *);
34 v_chrepeat(SCR *sp, VICMD *vp) in v_chrepeat()
63 v_chrrepeat(SCR *sp, VICMD *vp) in v_chrrepeat()
102 v_cht(SCR *sp, VICMD *vp) in v_cht()
133 v_chf(SCR *sp, VICMD *vp) in v_chf()
190 v_chT(SCR *sp, VICMD *vp) in v_chT()
224 v_chF(SCR *sp, VICMD *vp) in v_chF()
278 noprev(SCR *sp) in noprev()
284 notfound(SCR *sp, ARG_CHAR_T ch) in notfound()
H A Dv_util.c34 v_eof(SCR *sp, MARK *mp) in v_eof()
57 v_eol(SCR *sp, MARK *mp) in v_eol()
80 v_nomove(SCR *sp) in v_nomove()
92 v_sof(SCR *sp, MARK *mp) in v_sof()
107 v_sol(SCR *sp) in v_sol()
134 v_emsg(SCR *sp, char *p, vim_t which) in v_emsg()
H A Dv_word.c65 static int bword(SCR *, VICMD *, enum which);
66 static int eword(SCR *, VICMD *, enum which);
67 static int fword(SCR *, VICMD *, enum which);
76 v_wordW(SCR *sp, VICMD *vp) in v_wordW()
88 v_wordw(SCR *sp, VICMD *vp) in v_wordw()
98 fword(SCR *sp, VICMD *vp, enum which type) in fword()
236 v_wordE(SCR *sp, VICMD *vp) in v_wordE()
248 v_worde(SCR *sp, VICMD *vp) in v_worde()
258 eword(SCR *sp, VICMD *vp, enum which type) in eword()
382 v_wordB(SCR *sp, VICMD *vp) in v_wordB()
[all …]
H A Dvs_smap.c25 static int vs_deleteln(SCR *, int);
26 static int vs_insertln(SCR *, int);
27 static int vs_sm_delete(SCR *, recno_t);
28 static int vs_sm_down(SCR *, MARK *, recno_t, scroll_t, SMAP *);
29 static int vs_sm_erase(SCR *);
30 static int vs_sm_insert(SCR *, recno_t);
31 static int vs_sm_reset(SCR *, recno_t);
32 static int vs_sm_up(SCR *, MARK *, recno_t, scroll_t, SMAP *);
41 vs_change(SCR *sp, recno_t lno, lnop_t op) in vs_change()
173 vs_sm_fill(SCR *sp, recno_t lno, pos_t pos) in vs_sm_fill()
[all …]
H A Dv_itxt.c56 static u_int32_t set_txt_std(SCR *, VICMD *, u_int32_t);
65 v_iA(SCR *sp, VICMD *vp) in v_iA()
85 v_ia(SCR *sp, VICMD *vp) in v_ia()
122 v_iI(SCR *sp, VICMD *vp) in v_iI()
141 v_ii(SCR *sp, VICMD *vp) in v_ii()
165 static int io(SCR *, VICMD *, enum which);
174 v_iO(SCR *sp, VICMD *vp) in v_iO()
186 v_io(SCR *sp, VICMD *vp) in v_io()
192 io(SCR *sp, VICMD *vp, enum which cmd) in io()
242 v_change(SCR *sp, VICMD *vp) in v_change()
[all …]
H A Dgetc.c42 cs_init(SCR *sp, VCS *csp) in cs_init()
68 cs_next(SCR *sp, VCS *csp) in cs_next()
118 cs_fspace(SCR *sp, VCS *csp) in cs_fspace()
138 cs_fblank(SCR *sp, VCS *csp) in cs_fblank()
158 cs_prev(SCR *sp, VCS *csp) in cs_prev()
207 cs_bblank(SCR *sp, VCS *csp) in cs_bblank()
H A Dv_search.c27 static int v_exaddr(SCR *, VICMD *, dir_t);
28 static int v_search(SCR *, VICMD *, CHAR_T *, size_t, u_int, dir_t);
37 v_searchb(SCR *sp, VICMD *vp) in v_searchb()
49 v_searchf(SCR *sp, VICMD *vp) in v_searchf()
59 v_exaddr(SCR *sp, VICMD *vp, dir_t dir) in v_exaddr()
280 v_searchN(SCR *sp, VICMD *vp) in v_searchN()
305 v_searchn(SCR *sp, VICMD *vp) in v_searchn()
340 v_searchw(SCR *sp, VICMD *vp) in v_searchw()
389 v_search(SCR *sp, VICMD *vp, CHAR_T *ptrn, size_t plen, u_int flags, dir_t dir) in v_search()
452 v_correct(SCR *sp, VICMD *vp, int isdelta) in v_correct()
/freebsd/contrib/nvi/cl/
H A Dcl_funcs.c32 static void cl_rdiv(SCR *);
35 addstr4(SCR *sp, void *str, size_t len, int wide) in addstr4()
78 cl_waddstr(SCR *sp, const CHAR_T *str, size_t len) in cl_waddstr()
90 cl_addstr(SCR *sp, const char *str, size_t len) in cl_addstr()
102 cl_attr(SCR *sp, scr_attr_t attribute, int on) in cl_attr()
189 cl_baud(SCR *sp, u_long *ratep) in cl_baud()
230 cl_bell(SCR *sp) in cl_bell()
254 cl_clrtoeol(SCR *sp) in cl_clrtoeol()
283 cl_cursor(SCR *sp, size_t *yp, size_t *xp) in cl_cursor()
309 cl_deleteln(SCR *sp) in cl_deleteln()
[all …]
/freebsd/contrib/nvi/ex/
H A Dex_cscope.c60 static int cscope_add(SCR *, EXCMD *, CHAR_T *);
61 static int cscope_find(SCR *, EXCMD*, CHAR_T *);
62 static int cscope_help(SCR *, EXCMD *, CHAR_T *);
63 static int cscope_kill(SCR *, EXCMD *, CHAR_T *);
64 static int cscope_reset(SCR *, EXCMD *, CHAR_T *);
68 int (*function)(SCR *, EXCMD *, CHAR_T *);
87 static TAGQ *create_cs_cmd(SCR *, char *, size_t *);
88 static int csc_help(SCR *, char *);
89 static void csc_file(SCR *,
91 static int get_paths(SCR *, CSC *);
[all …]
H A Dex_tag.c37 static void ctag_file(SCR *, TAGF *, char *, char **, size_t *);
38 static int ctag_search(SCR *, CHAR_T *, size_t, char *);
39 static int ctag_sfile(SCR *, TAGF *, TAGQ *, char *);
40 static TAGQ *ctag_slist(SCR *, CHAR_T *);
42 static int tag_copy(SCR *, TAG *, TAG **);
43 static int tag_pop(SCR *, TAGQ *, int);
44 static int tagf_copy(SCR *, TAGF *, TAGF **);
45 static int tagf_free(SCR *, TAGF *);
46 static int tagq_copy(SCR *, TAGQ *, TAGQ **);
55 ex_tag_first(SCR *sp, CHAR_T *tagarg) in ex_tag_first()
[all …]
H A Dex_print.c25 static int ex_prchars(SCR *,
36 ex_list(SCR *sp, EXCMD *cmdp) in ex_list()
54 ex_number(SCR *sp, EXCMD *cmdp) in ex_number()
72 ex_pr(SCR *sp, EXCMD *cmdp) in ex_pr()
88 ex_print(SCR *sp, EXCMD *cmdp, MARK *fp, MARK *tp, u_int32_t flags) in ex_print()
143 ex_ldisplay(SCR *sp, const CHAR_T *p, size_t len, size_t col, u_int flags) in ex_ldisplay()
164 ex_scprint(SCR *sp, MARK *fp, MARK *tp) in ex_scprint()
199 ex_prchars(SCR *sp, const CHAR_T *p, size_t *colp, size_t len, in ex_prchars()
261 SCR *sp, in ex_printf()
290 ex_puts(SCR *sp, const char *str) in ex_puts()
[all …]
H A Dex_screen.c32 ex_bg(SCR *sp, EXCMD *cmdp) in ex_bg()
44 ex_fg(SCR *sp, EXCMD *cmdp) in ex_fg()
46 SCR *nsp; in ex_fg()
68 ex_resize(SCR *sp, EXCMD *cmdp) in ex_resize()
97 ex_sdisplay(SCR *sp) in ex_sdisplay()
100 SCR *tsp; in ex_sdisplay()
H A Dex_script.c46 static void sscr_check(SCR *);
47 static int sscr_getprompt(SCR *);
48 static int sscr_init(SCR *);
49 static int sscr_insert(SCR *);
50 static int sscr_matchprompt(SCR *, char *, size_t, size_t *);
51 static int sscr_setprompt(SCR *, char *, size_t);
60 ex_script(SCR *sp, EXCMD *cmdp) in ex_script()
85 sscr_init(SCR *sp) in sscr_init()
192 sscr_getprompt(SCR *sp) in sscr_getprompt()
296 sscr_exec(SCR *sp, recno_t lno) in sscr_exec()
[all …]
H A Dex_init.c29 static enum rc exrc_isok(SCR *, struct stat *, char *, int, int);
31 static int ex_run_file(SCR *, char *);
40 ex_screen_copy(SCR *orig, SCR *sp) in ex_screen_copy()
76 ex_screen_end(SCR *sp) in ex_screen_end()
119 ex_optchange(SCR *sp, int offset, char *str, u_long *valp) in ex_optchange()
136 ex_exrc(SCR *sp) in ex_exrc()
261 ex_run_file(SCR *sp, char *name) in ex_run_file()
280 ex_run_str(SCR *sp, char *name, CHAR_T *str, size_t len, int ex_flags, int nocopy) in ex_run_str()
351 exrc_isok(SCR *sp, struct stat *sbp, char *path, int rootown, int rootid) in exrc_isok()

12345