Home
last modified time | relevance | path

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

12

/freebsd/contrib/mandoc/
H A Dterm.h44 struct termp;
46 typedef void (*term_margin)(struct termp *, const struct roff_meta *);
58 struct termp {
109 void (*letter)(struct termp *, int);
110 void (*begin)(struct termp *);
111 void (*end)(struct termp *);
112 void (*endline)(struct termp *);
113 void (*advance)(struct termp *, size_t); argument
114 void (*setwidth)(struct termp *, int, int); argument
115 size_t (*getwidth)(const struct termp *, in argument
62 struct termp { global() struct
64 tcolstermp global() argument
65 tcoltermp global() argument
66 maxtcoltermp global() argument
67 lasttcoltermp global() argument
68 linetermp global() argument
69 defindenttermp global() argument
70 defrmargintermp global() argument
71 lastrmargintermp global() argument
72 maxrmargintermp global() argument
73 coltermp global() argument
74 viscoltermp global() argument
75 trailspacetermp global() argument
76 minbltermp global() argument
77 synopsisonlytermp global() argument
78 mdocstyletermp global() argument
79 titermp global() argument
80 skipvsptermp global() argument
81 flagstermp global() argument
116 endlinetermp global() argument
117 advancetermp global() argument
118 setwidthtermp global() argument
119 widthtermp global() argument
120 hspantermp global() argument
124 pstermp global() argument
130 mctermp global() argument
[all...]
H A Dterm_ascii.c43 static struct termp *ascii_init(enum termenc, const struct manoutput *);
44 static int ascii_hspan(const struct termp *,
46 static size_t ascii_getwidth(const struct termp *, int);
47 static void ascii_advance(struct termp *, size_t);
48 static void ascii_begin(struct termp *);
49 static void ascii_end(struct termp *);
50 static void ascii_endline(struct termp *);
51 static void ascii_letter(struct termp *, int);
52 static void ascii_setwidth(struct termp *, int, int);
55 static void locale_advance(struct termp *, size_
[all...]
H A Dterm_ps.c96 static int ps_hspan(const struct termp *,
98 static size_t ps_getwidth(const struct termp *, int);
99 static void ps_advance(struct termp *, size_t);
100 static void ps_begin(struct termp *);
101 static void ps_closepage(struct termp *);
102 static void ps_end(struct termp *);
103 static void ps_endline(struct termp *);
104 static void ps_growbuf(struct termp *, size_t);
105 static void ps_letter(struct termp *, int);
106 static void ps_pclose(struct termp *);
[all...]
H A Dterm.c35 static size_t cond_width(const struct termp *, int, int *);
37 static void bufferc(struct termp *, char);
38 static void encode(struct termp *, const char *, size_t);
39 static void encode1(struct termp *, int);
40 static void endline(struct termp *);
41 static void term_field(struct termp *, size_t, size_t);
42 static void term_fill(struct termp *, size_t *, size_t *,
47 term_setcol(struct termp *p, size_t maxtcol) in term_setcol()
59 term_free(struct termp *p) in term_free()
70 term_begin(struct termp *
[all...]
H A Dtbl_term.c42 static void tbl_data(struct termp *, const struct tbl_opts *,
46 static void tbl_direct_border(struct termp *, int, size_t);
47 static void tbl_fill_border(struct termp *, int, size_t *, size_t);
48 static void tbl_fill_char(struct termp *, char, size_t *, size_t);
49 static void tbl_fill_string(struct termp *, const char *,
51 static void tbl_hrule(struct termp *, const struct tbl_span *,
54 static void tbl_literal(struct termp *, const struct tbl_dat *,
56 static void tbl_number(struct termp *, const struct tbl_opts *,
59 static void tbl_word(struct termp *, const struct tbl_dat *);
145 return term_strlen((const struct termp *)ar in term_tbl_sulen()
[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 *,
154 struct termp *p; in terminal_man()
157 p = (struct termp *)arg; in terminal_man()
203 print_bvspace(struct termp *p, struct roff_node *n, int pardist)
1024 print_man_foot(struct termp *p, const struct roff_meta *meta) in print_man_foot()
1087 print_man_head(struct termp *p, const struct roff_meta *meta) in print_man_foot()
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 *);
64 static void print_mdoc_foot(struct termp *, const struct roff_meta *);
65 static void synopsis_pre(struct termp *, struct roff_node *);
252 struct termp *p; in terminal_mdoc()
254 p = (struct termp *)arg; in terminal_mdoc()
442 print_mdoc_foot(struct termp *p, const struct roff_meta *meta) in print_mdoc_foot()
496 print_mdoc_head(struct termp * in print_mdoc_head()
[all...]
H A Droff_term.c31 #define ROFF_TERM_ARGS struct termp *p, const struct roff_node *n
62 roff_term_pre(struct termp *p, const struct roff_node *n) in roff_term_pre()
H A Dterm_tab.c44 term_tab_set(const struct termp *p, const char *arg) in term_tab_set()
/freebsd/contrib/ncurses/ncurses/tinfo/
H A Dlib_cur_term.c47 #define CUR TerminalType(termp).
81 NCURSES_SP_NAME(set_curterm) (NCURSES_SP_DCLx TERMINAL *termp) in NCURSES_SP_NAME()
85 T((T_CALLED("set_curterm(%p)"), (void *) termp)); in NCURSES_SP_NAME()
90 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 != NULL) { in NCURSES_SP_NAME()
98 TERMINAL_CONTROL_BLOCK *TCB = (TERMINAL_CONTROL_BLOCK *) termp; in NCURSES_SP_NAME()
99 ospeed = (NCURSES_OSPEED) _nc_ospeed(termp->_baudrate); in NCURSES_SP_NAME()
102 TerminalType(termp).Strings) { in NCURSES_SP_NAME()
[all …]
H A Dlib_ttyflags.c50 TERMINAL *termp = TerminalOf(SP_PARM); in NCURSES_EXPORT() local
53 if (buf == NULL || termp == NULL) { in NCURSES_EXPORT()
65 if (GET_TTY(termp->Filedes, buf) != 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 (NULL == termp) { in NCURSES_SP_NAME()
109 if ((SET_TTY(termp->Filedes, buf) != 0) in NCURSES_SP_NAME()
111 && !NC_ISATTY(termp->Filedes) in NCURSES_SP_NAME()
125 termp ? termp->Filedes : -1, in NCURSES_SP_NAME()
143 TERMINAL *termp = TerminalOf(SP_PARM); in NCURSES_SP_NAME() local
[all …]
H A Dlib_setup.c102 #define CUR TerminalType(termp).
117 TERMINAL *termp = TerminalOf(CURRENT_SCREEN); in NCURSES_EXPORT() local
118 if (termp != NULL) { in NCURSES_EXPORT()
119 result = TerminalType(termp).term_names; in NCURSES_EXPORT()
277 _nc_default_screensize(TERMINAL *termp, int *linep, int *colp) in _nc_default_screensize() argument
323 get_position(const TERMINAL *termp, int fd, int *row, int *col) in get_position() argument
364 set_position(NCURSES_SP_DCLx const TERMINAL *termp, int row, int col) in set_position() argument
381 int have = (int) write(termp->Filedes, actual, want); in set_position()
405 _nc_check_screensize(SCREEN *sp, TERMINAL *termp, int *linep, int *colp) in _nc_check_screensize() argument
407 int fd = termp->Filedes; in _nc_check_screensize()
[all …]
H A Dlib_raw.c84 TERMINAL *termp; in NCURSES_EXPORT() local
87 if ((termp = TerminalOf(SP_PARM)) != NULL) { in NCURSES_EXPORT()
93 buf = termp->Nttyb; in NCURSES_EXPORT()
121 termp->Nttyb = buf; in NCURSES_EXPORT()
140 TERMINAL *termp; in NCURSES_SP_NAME() local
143 if ((termp = TerminalOf(SP_PARM)) != NULL) { in NCURSES_SP_NAME()
149 buf = termp->Nttyb; in NCURSES_SP_NAME()
166 termp->Nttyb = buf; in NCURSES_SP_NAME()
184 TERMINAL *termp; in NCURSES_SP_NAME() local
187 if ((termp = TerminalOf(SP_PARM)) != NULL) { in NCURSES_SP_NAME()
[all …]
H A Dlib_kernel.c88 TERMINAL *termp = TerminalOf(SP_PARM); in NCURSES_SP_NAME() local
92 if (termp != NULL) { 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 != NULL) { 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()
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()
125 termp->Nttyb.c_oflag &= (unsigned) (~OFLAGS_TABS); in get_baudrate()
129 termp->Nttyb.sg_flags &= (unsigned) (~XTABS); in get_baudrate()
133 result = (int) cfgetospeed(&(termp->Nttyb)); in get_baudrate()
137 my_ospeed = (NCURSES_OSPEED) cfgetospeed(&(termp->Nttyb)); in get_baudrate()
142 my_ospeed = (NCURSES_OSPEED) termp->Nttyb.sg_ospeed; in get_baudrate()
146 termp->_baudrate = result; in get_baudrate()
160 TERMINAL *termp; in drv_CanHandle() local
168 termp = (TERMINAL *) TCB; in drv_CanHandle()
[all …]
H A Dlib_termcap.c104 TERMINAL *termp = NULL; in NCURSES_SP_NAME() local
110 TINFO_SETUP_TERM(&termp, name, STDOUT_FILENO, &rc, TRUE); in NCURSES_SP_NAME()
113 if (termp == NULL || in NCURSES_SP_NAME()
114 !((TERMINAL_CONTROL_BLOCK *) termp)->drv->isTerminfo) in NCURSES_SP_NAME()
420 _nc_tgetent_leak(const TERMINAL *const termp) in _nc_tgetent_leak() argument
422 if (termp != NULL) { in _nc_tgetent_leak()
425 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()
110 restartterm(NCURSES_CONST char *termp, int filenum, int *errret) in restartterm() argument
113 return NCURSES_SP_NAME(restartterm) (CURRENT_SCREEN, termp, filenum, errret); in restartterm()
/freebsd/contrib/ncurses/progs/
H A Dtset.c379 const char *termp; in add_mapping() local
410 termp = mapp->porttype = NULL; in add_mapping()
412 termp = base = arg; in add_mapping()
454 if (termp != NULL) in add_mapping()
/freebsd/contrib/ncurses/ncurses/
H A Dllib-ltinfow414 TERMINAL *termp)
419 TERMINAL *termp)
425 TERMINAL *termp)
430 TERMINAL *termp)
818 TERMINAL *termp,
832 TERMINAL *termp)
971 TERMINAL *termp)
H A Dllib-ltinfo392 TERMINAL *termp)
397 TERMINAL *termp)
403 TERMINAL *termp)
408 TERMINAL *termp)
796 TERMINAL *termp,
810 TERMINAL *termp)
949 TERMINAL *termp)
H A Dllib-ltinfot408 TERMINAL *termp)
413 TERMINAL *termp)
419 TERMINAL *termp)
424 TERMINAL *termp)
864 TERMINAL *termp,
878 TERMINAL *termp)
1025 TERMINAL *termp)
H A Dllib-ltinfotw430 TERMINAL *termp)
435 TERMINAL *termp)
441 TERMINAL *termp)
446 TERMINAL *termp)
886 TERMINAL *termp,
900 TERMINAL *termp)
1047 TERMINAL *termp)
/freebsd/crypto/openssh/openbsd-compat/
H A Dbsd-openpty.c129 openpty(int *amaster, int *aslave, char *name, struct termios *termp, in openpty() argument

12