Home
last modified time | relevance | path

Searched refs:termp (Results 1 – 25 of 32) sorted by relevance

12

/freebsd/contrib/mandoc/
H A Dterm.h43 struct termp;
61 struct termp { struct
113 void (*begin)(struct termp *); argument
114 void (*end)(struct termp *); argument
115 void (*endline)(struct termp *); argument
119 int (*hspan)(const struct termp *, argument
133 void term_free(struct termp *);
135 void term_newln(struct termp *);
136 void term_vspace(struct termp *);
138 void term_flushln(struct termp *);
[all …]
H A Dterm_ascii.c62 static struct termp *
68 struct termp *p; in ascii_init()
185 struct termp *p; in terminal_sepline()
188 p = (struct termp *)arg; in terminal_sepline()
206 term_free((struct termp *)arg); in ascii_free()
210 ascii_letter(struct termp *p, int c) in ascii_letter()
217 ascii_begin(struct termp *p) in ascii_begin()
224 ascii_end(struct termp *p) in ascii_end()
231 ascii_endline(struct termp *p) in ascii_endline()
406 locale_endline(struct termp *p) in locale_endline()
[all …]
H A Dterm_ps.c526 static struct termp *
529 struct termp *p; in pspdf_alloc()
645 struct termp *p; in pspdf_free()
647 p = (struct termp *)arg; in pspdf_free()
730 ps_closepage(struct termp *p) in ps_closepage()
781 ps_end(struct termp *p) in ps_end()
848 ps_begin(struct termp *p) in ps_begin()
957 ps_pletter(struct termp *p, int c) in ps_pletter()
1037 ps_pclose(struct termp *p) in ps_pclose()
1063 ps_plast(struct termp *p) in ps_plast()
[all …]
H A Dterm.c40 static void endline(struct termp *);
59 term_free(struct termp *p) in term_free()
80 term_end(struct termp *p) in term_end()
94 term_flushln(struct termp *p) in term_flushln()
412 endline(struct termp *p) in endline()
436 term_newln(struct termp *p) in term_newln()
451 term_vspace(struct termp *p) in term_vspace()
465 term_fontlast(struct termp *p) in term_fontlast()
509 term_fontpop(struct termp *p) in term_fontpop()
764 bufferc(struct termp *p, char c) in bufferc()
[all …]
H A Dtbl_term.c44 static void tbl_direct_border(struct termp *, int, size_t);
45 static void tbl_fill_border(struct termp *, int, size_t);
46 static void tbl_fill_char(struct termp *, char, size_t);
144 i = term_hen((const struct termp *)arg, su); in term_tbl_sulen()
151 return term_strlen((const struct termp *)arg, p); in term_tbl_strlen()
157 return term_len((const struct termp *)arg, sz); in term_tbl_len()
162 term_tbl(struct termp *tp, const struct tbl_span *sp) in term_tbl()
777 tbl_fill_char(struct termp *tp, char c, size_t len) in tbl_fill_char()
787 tbl_fill_border(struct termp *tp, int c, size_t len) in tbl_fill_border()
799 tbl_direct_border(struct termp *tp, int c, size_t len) in tbl_direct_border()
[all …]
H A Deqn_term.c40 static void eqn_box(struct termp *, const struct eqn_box *);
44 term_eqn(struct termp *p, const struct eqn_box *bp) in term_eqn()
52 eqn_box(struct termp *p, const struct eqn_box *bp) in eqn_box()
H A Dman_term.c51 #define DECL_ARGS struct termp *p, \
65 static void print_man_head(struct termp *,
67 static void print_man_foot(struct termp *,
69 static void print_bvspace(struct termp *,
153 struct termp *p; in terminal_man()
157 p = (struct termp *)arg; in terminal_man()
209 print_bvspace(struct termp *p, struct roff_node *n, int pardist) in print_bvspace()
1003 print_man_foot(struct termp *p, const struct roff_meta *meta) in print_man_foot()
1082 print_man_head(struct termp *p, const struct roff_meta *meta) in print_man_head()
H A Dmdoc_term.c47 #define DECL_ARGS struct termp *p, \
57 static int a2width(const struct termp *, const char *);
59 static void print_bvspace(struct termp *,
63 static void print_mdoc_head(struct termp *, const struct roff_meta *);
65 static void synopsis_pre(struct termp *, struct roff_node *);
252 struct termp *p; in terminal_mdoc()
255 p = (struct termp *)arg; in terminal_mdoc()
444 print_mdoc_foot(struct termp *p, const struct roff_meta *meta) in print_mdoc_foot()
493 print_mdoc_head(struct termp *p, const struct roff_meta *meta) in print_mdoc_head()
562 a2width(const struct termp *p, const char *v) in a2width()
[all …]
H A Droff_term.c30 #define ROFF_TERM_ARGS struct termp *p, const struct roff_node *n
61 roff_term_pre(struct termp *p, const struct roff_node *n) in roff_term_pre()
H A Dterm_tab.c41 term_tab_set(const struct termp *p, const char *arg) in term_tab_set()
/freebsd/contrib/ncurses/ncurses/tinfo/
H A Dlib_cur_term.c90 SP_PARM->_term = termp; in NCURSES_SP_NAME()
92 CurTerm = termp; in NCURSES_SP_NAME()
94 cur_term = termp; in NCURSES_SP_NAME()
96 if (termp != 0) { in NCURSES_SP_NAME()
113 save_ttytype(termp); in NCURSES_SP_NAME()
124 set_curterm(TERMINAL *termp) in set_curterm() argument
137 if (termp != 0) { in NCURSES_SP_NAME()
153 if (termp == cur) in NCURSES_SP_NAME()
168 _nc_tgetent_leak(termp); in NCURSES_SP_NAME()
170 free(termp); in NCURSES_SP_NAME()
[all …]
H A Dlib_ttyflags.c53 if (buf == 0 || termp == 0) { in NCURSES_EXPORT()
75 termp ? termp->Filedes : -1, in NCURSES_EXPORT()
100 TERMINAL *termp = TerminalOf(SP_PARM); in NCURSES_SP_NAME() local
102 if (0 == termp) { in NCURSES_SP_NAME()
111 && !NC_ISATTY(termp->Filedes) in NCURSES_SP_NAME()
125 termp ? termp->Filedes : -1, in NCURSES_SP_NAME()
148 if (termp != 0) { in NCURSES_SP_NAME()
188 if (termp != 0) { in NCURSES_SP_NAME()
226 if (termp != 0) { in NCURSES_SP_NAME()
259 if (termp != 0) { in NCURSES_SP_NAME()
[all …]
H A Dlib_raw.c85 TERMINAL *termp; in NCURSES_EXPORT() local
94 buf = termp->Nttyb; in NCURSES_EXPORT()
141 TERMINAL *termp; in NCURSES_SP_NAME() local
150 buf = termp->Nttyb; in NCURSES_SP_NAME()
190 TERMINAL *termp; in NCURSES_SP_NAME() local
198 buf = termp->Nttyb; in NCURSES_SP_NAME()
225 TERMINAL *termp; in NCURSES_SP_NAME() local
234 buf = termp->Nttyb; in NCURSES_SP_NAME()
280 TERMINAL *termp; in NCURSES_SP_NAME() local
289 buf = termp->Nttyb; in NCURSES_SP_NAME()
[all …]
H A Dlib_setup.c118 if (termp != 0) { in NCURSES_EXPORT()
278 TERMINAL *termp, in _nc_get_screensize() argument
418 (termp)->type.Numbers[(&name - (termp)->type2.Numbers)] in _nc_get_screensize()
643 TERMINAL *termp; in TINFO_SETUP_TERM() local
658 termp = *tp; in TINFO_SETUP_TERM()
720 && (termp != 0) in TINFO_SETUP_TERM()
733 termp = 0; in TINFO_SETUP_TERM()
741 if (termp == 0) { in TINFO_SETUP_TERM()
809 _nc_export_termtype2(&termp->type, &TerminalType(termp)); in TINFO_SETUP_TERM()
818 set_curterm(termp); in TINFO_SETUP_TERM()
[all …]
H A Dlib_kernel.c88 TERMINAL *termp = TerminalOf(SP_PARM); in NCURSES_SP_NAME() local
92 if (termp != 0) { in NCURSES_SP_NAME()
94 result = termp->Ottyb.c_cc[VERASE]; in NCURSES_SP_NAME()
100 result = termp->Ottyb.sg_erase; in NCURSES_SP_NAME()
125 TERMINAL *termp = TerminalOf(SP_PARM); in NCURSES_SP_NAME() local
129 if (termp != 0) { in NCURSES_SP_NAME()
131 result = termp->Ottyb.c_cc[VKILL]; in NCURSES_SP_NAME()
137 result = termp->Ottyb.sg_kill; in NCURSES_SP_NAME()
165 if (termp != 0) { in NCURSES_SP_NAME()
167 tcflush(termp->Filedes, TCIFLUSH); in NCURSES_SP_NAME()
[all …]
H A Dtinfo_driver.c119 get_baudrate(TERMINAL *termp) in get_baudrate() argument
123 if (GET_TTY(termp->Filedes, &termp->Nttyb) == OK) { in get_baudrate()
146 termp->_baudrate = result; in get_baudrate()
160 TERMINAL *termp; in drv_CanHandle() local
167 termp = (TERMINAL *) TCB; in drv_CanHandle()
185 TerminalType(termp) = *fallback; in drv_CanHandle()
203 _nc_export_termtype2(&termp->type, &TerminalType(termp)); in drv_CanHandle()
206 save_ttytype(termp); in drv_CanHandle()
219 get_baudrate(termp); in drv_CanHandle()
224 _nc_free_termtype(&termp->type) in drv_CanHandle()
[all …]
H A Dlib_termcap.c104 TERMINAL *termp = 0; in NCURSES_SP_NAME() local
110 TINFO_SETUP_TERM(&termp, name, STDOUT_FILENO, &rc, TRUE); in NCURSES_SP_NAME()
113 if (termp == 0 || in NCURSES_SP_NAME()
114 !((TERMINAL_CONTROL_BLOCK *) termp)->drv->isTerminfo) in NCURSES_SP_NAME()
418 _nc_tgetent_leak(TERMINAL *termp) in _nc_tgetent_leak() argument
420 if (termp != 0) { in _nc_tgetent_leak()
423 if (LAST_TRM == termp) { in _nc_tgetent_leak()
/freebsd/lib/libutil/
H A Dpty.c47 openpty(int *amaster, int *aslave, char *name, struct termios *termp, in openpty() argument
76 if (termp) in openpty()
77 tcsetattr(slave, TCSAFLUSH, termp); in openpty()
88 forkpty(int *amaster, char *name, struct termios *termp, struct winsize *winp) in forkpty() argument
92 if (openpty(&master, &slave, name, termp, winp) == -1) in forkpty()
/freebsd/contrib/ncurses/ncurses/base/
H A Dlib_restart.c49 NCURSES_CONST char *termp, in NCURSES_EXPORT()
61 termp, in NCURSES_EXPORT()
65 if (TINFO_SETUP_TERM(&new_term, termp, filenum, errret, FALSE) != OK) { in NCURSES_EXPORT()
113 restartterm(NCURSES_CONST char *termp, int filenum, int *errret) in restartterm() argument
116 return NCURSES_SP_NAME(restartterm) (CURRENT_SCREEN, termp, filenum, errret); in restartterm()
/freebsd/contrib/ncurses/progs/
H A Dtset.c377 const char *termp; in add_mapping() local
408 termp = mapp->porttype = 0; in add_mapping()
410 termp = base = arg; in add_mapping()
452 if (termp != 0) in add_mapping()
/freebsd/crypto/openssh/openbsd-compat/
H A Dbsd-openpty.c132 openpty(int *amaster, int *aslave, char *name, struct termios *termp, in openpty() argument
/freebsd/contrib/ncurses/ncurses/
H A Dllib-ltinfo368 TERMINAL *termp)
373 TERMINAL *termp)
379 TERMINAL *termp)
384 TERMINAL *termp)
736 TERMINAL *termp,
750 TERMINAL *termp)
H A Dllib-ltinfot384 TERMINAL *termp)
389 TERMINAL *termp)
395 TERMINAL *termp)
400 TERMINAL *termp)
804 TERMINAL *termp,
818 TERMINAL *termp)
H A Dllib-ltinfow390 TERMINAL *termp)
395 TERMINAL *termp)
401 TERMINAL *termp)
406 TERMINAL *termp)
758 TERMINAL *termp,
772 TERMINAL *termp)
/freebsd/contrib/llvm-project/llvm/lib/Support/Unix/
H A DProcess.inc350 extern "C" struct term *set_curterm(struct term *termp);
351 extern "C" int del_curterm(struct term *termp);
404 struct term *termp = set_curterm(previous_term);
405 (void)del_curterm(termp); // Drop any errors here.

12