| /freebsd-src/contrib/mandoc/ |
| H A D | term.h | 43 struct termp; 45 typedef void (*term_margin)(struct termp *, const struct roff_meta *); 62 struct termp { 113 void (*letter)(struct termp *, int); argument 114 void (*begin)(struct termp *); argument 115 void (*end)(struct termp *); argument 116 void (*endline)(struct termp *); argument 117 void (*advance)(struct termp *, size_t); argument 118 void (*setwidth)(struct termp *, int, int); argument 119 size_t (*width)(const struct termp *, in argument 61 struct termp { global() struct 63 tcolstermp global() argument 64 tcoltermp global() argument 65 maxtcoltermp global() argument 66 lasttcoltermp global() argument 67 linetermp global() argument 68 defindenttermp global() argument 69 defrmargintermp global() argument 70 lastrmargintermp global() argument 71 maxrmargintermp global() argument 72 coltermp global() argument 73 viscoltermp global() argument 74 trailspacetermp global() argument 75 minbltermp global() argument 76 synopsisonlytermp global() argument 77 mdocstyletermp global() argument 78 titermp global() argument 79 skipvsptermp global() argument 80 flagstermp global() argument 112 lettertermp global() argument 123 pstermp global() argument 129 mctermp global() argument [all...] |
| H A D | term_ascii.c | 43 static struct termp *ascii_init(enum termenc, const struct manoutput *); 44 static int ascii_hspan(const struct termp *, 46 static size_t ascii_width(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 D | term_ps.c | 96 static int ps_hspan(const struct termp *, 98 static size_t ps_width(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 D | term.c | 35 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 * in term_begin() [all...] |
| H A D | tbl_term.c | 43 static void tbl_data(struct termp *, const struct tbl_opts *, 47 static void tbl_direct_border(struct termp *, int, size_t); 48 static void tbl_fill_border(struct termp *, int, size_t); 49 static void tbl_fill_char(struct termp *, char, size_t); 50 static void tbl_fill_string(struct termp *, const char *, size_t); 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 *); 147 i = term_hen((const struct termp *)ar in term_tbl_sulen() [all...] |
| H A D | eqn_term.c | 40 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 D | man_term.c | 51 #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() 205 print_bvspace(struct termp *p, struct roff_node *n, int pardist) 1015 print_man_foot(struct termp *p, const struct roff_meta *meta) in print_man_foot() 1094 print_man_head(struct termp *p, const struct roff_meta *meta) in print_man_head()
|
| H A D | mdoc_term.c | 47 #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) 491 print_mdoc_head(struct termp * in print_mdoc_foot() [all...] |
| H A D | roff_term.c | 30 #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 D | term_tab.c | 44 term_tab_set(const struct termp *p, const char *arg) in term_tab_set()
|
| /freebsd-src/contrib/ncurses/ncurses/tinfo/ |
| H A D | lib_cur_term.c | 47 #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 != 0) { 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 D | lib_ttyflags.c | 50 TERMINAL *termp = TerminalOf(SP_PARM); in NCURSES_EXPORT() local 53 if (buf == 0 || termp == 0) { 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 (0 == 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 D | lib_setup.c | 102 #define CUR TerminalType(termp). 117 TERMINAL *termp = TerminalOf(CURRENT_SCREEN); in NCURSES_EXPORT() local 118 if (termp != 0) { 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(TERMINAL *termp, int fd, int *row, int *col) in get_position() argument 365 set_position(NCURSES_SP_DCLx TERMINAL *termp, int row, int col) in set_position() argument 382 int have = (int) write(termp->Filedes, actual, want); in set_position() 406 _nc_check_screensize(SCREEN *sp, TERMINAL *termp, int *linep, int *colp) in _nc_check_screensize() argument 408 int fd = termp->Filedes; in _nc_check_screensize() [all …]
|
| H A D | lib_raw.c | 85 TERMINAL *termp; in NCURSES_EXPORT() local 88 if ((termp = TerminalOf(SP_PARM)) != 0) { in NCURSES_EXPORT() 94 buf = termp->Nttyb; in NCURSES_EXPORT() 122 termp->Nttyb = buf; in NCURSES_EXPORT() 141 TERMINAL *termp; in NCURSES_SP_NAME() local 144 if ((termp = TerminalOf(SP_PARM)) != 0) { in NCURSES_SP_NAME() 150 buf = termp->Nttyb; in NCURSES_SP_NAME() 167 termp->Nttyb = buf; in NCURSES_SP_NAME() 189 TERMINAL *termp; in NCURSES_SP_NAME() local 192 if ((termp = TerminalOf(SP_PARM)) != 0) { in NCURSES_SP_NAME() [all …]
|
| H A D | lib_kernel.c | 88 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()
|
| H A D | tinfo_driver.c | 119 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 167 termp = (TERMINAL *) TCB; in drv_CanHandle() [all …]
|
| H A D | lib_termcap.c | 104 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(const TERMINAL *const termp) in _nc_tgetent_leak() argument 420 if (termp != 0) { in _nc_tgetent_leak() 423 if (LAST_TRM == termp) { in _nc_tgetent_leak()
|
| /freebsd-src/lib/libutil/ |
| H A D | pty.c | 47 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-src/contrib/ncurses/ncurses/base/ |
| H A D | lib_restart.c | 49 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-src/contrib/ncurses/progs/ |
| H A D | tset.c | 379 const char *termp; in add_mapping() local 410 termp = mapp->porttype = 0; in add_mapping() 412 termp = base = arg; in add_mapping() 454 if (termp != 0) in add_mapping()
|
| /freebsd-src/contrib/ncurses/ncurses/ |
| H A D | llib-ltinfo | 386 TERMINAL *termp) 391 TERMINAL *termp) 397 TERMINAL *termp) 402 TERMINAL *termp) 790 TERMINAL *termp, 804 TERMINAL *termp) 943 TERMINAL *termp)
|
| H A D | llib-ltinfow | 408 TERMINAL *termp) 413 TERMINAL *termp) 419 TERMINAL *termp) 424 TERMINAL *termp) 812 TERMINAL *termp, 826 TERMINAL *termp) 965 TERMINAL *termp)
|
| H A D | llib-ltinfot | 402 TERMINAL *termp) 407 TERMINAL *termp) 413 TERMINAL *termp) 418 TERMINAL *termp) 858 TERMINAL *termp, 872 TERMINAL *termp) 1019 TERMINAL *termp)
|
| H A D | llib-ltinfotw | 424 TERMINAL *termp) 429 TERMINAL *termp) 435 TERMINAL *termp) 440 TERMINAL *termp) 880 TERMINAL *termp, 894 TERMINAL *termp) 1041 TERMINAL *termp)
|
| /freebsd-src/crypto/openssh/openbsd-compat/ |
| H A D | bsd-openpty.c | 132 openpty(int *amaster, int *aslave, char *name, struct termios *termp, in openpty() argument
|