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

1 2 3 4 5

  /src/lib/libterminfo/
ti.c 36 #include <term.h>
39 ti_getflag(const TERMINAL *term, const char *id)
45 _DIAGASSERT(term != NULL);
50 return term->flags[ind];
51 for (i = 0; i < term->_nuserdefs; i++) {
52 ud = &term->_userdefs[i];
70 ti_getnum(const TERMINAL *term, const char *id)
76 _DIAGASSERT(term != NULL);
81 if (!VALID_NUMERIC(term->nums[ind]))
83 return term->nums[ind]
    [all...]
term.c 1 /* $NetBSD: term.c,v 1.34 2020/04/05 14:53:39 martin Exp $ */
31 __RCSID("$NetBSD: term.c,v 1.34 2020/04/05 14:53:39 martin Exp $");
45 #include <term.h>
79 _ti_readterm(TERMINAL *term, const char *cap, size_t caplen, int flags)
94 if (allocset(&term->flags, 0, TIFLAGMAX+1, sizeof(*term->flags)) == -1)
97 if (allocset(&term->nums, -1, TINUMMAX+1, sizeof(*term->nums)) == -1)
100 if (allocset(&term->strs, 0, TISTRMAX+1, sizeof(*term->strs)) == -1
    [all...]
tputs.c 38 #include <term.h>
131 ti_puts(const TERMINAL *term, const char *str, int affcnt,
137 _DIAGASSERT(term != NULL);
143 dodelay = (str == t_bell(term) ||
144 str == t_flash_screen(term) ||
145 (t_xon_xoff(term) == 0 && t_padding_baud_rate(term) != 0));
147 if (t_pad_char(term) == NULL)
150 pc = *t_pad_char(term);
151 return _ti_puts(dodelay, term->_ospeed, pc
    [all...]
tparm.c 42 #include <term.h>
97 checkbuf(TERMINAL *term, size_t len)
101 if (term->_bufpos + len >= term->_buflen) {
102 len = term->_buflen + MAX(len, BUFINC);
103 buf = realloc(term->_buf, len);
106 term->_buf = buf;
107 term->_buflen = len;
109 return term->_buf;
113 ochar(TERMINAL *term, int c
    [all...]
setupterm.c 42 #include <term.h>
80 ti_setupterm(TERMINAL **nterm, const char *term, int fildes, int *errret)
87 if (term == NULL)
88 term = getenv("TERM");
89 if (term == NULL || *term == '\0') {
91 reterr(0, "TERM environment variable not set");
100 error = _ti_getterm(*nterm, term, 0);
111 term);
    [all...]
curterm.c 37 #include <term.h>
60 _ti_setospeed(TERMINAL *term)
66 _DIAGASSERT(term != NULL);
68 term->_ospeed = 0;
69 if (tcgetattr(term->fildes, &termios) == 0) {
73 term->_ospeed = (short)i;
  /src/lib/libcurses/
setterm.c 70 if (screen->term)
71 del_curterm(screen->term);
72 (void)ti_setupterm(&screen->term, type, fileno(screen->outfd), &r);
73 if (screen->term == NULL) {
75 (void)ti_setupterm(&screen->term, "dumb",
77 /* No dumb term? We can't continue */
78 if (screen->term == NULL)
84 screen->LINES = t_lines(screen->term);
85 screen->COLS = t_columns(screen->term);
89 screen->term->strs[TICODE_clear] = NULL
    [all...]
acs.c 60 unsigned char acs, term; local in function:__init_acs
101 if (t_acs_chars(screen->term) == NULL)
104 aofac = t_acs_chars(screen->term);
109 if ((term = *++aofac) == '\0')
113 _acs_char[acs] = term | __ALTCHARSET;
115 __CTRACE(__CTRACE_INIT, "__init_acs: %c = %c\n", acs, term);
118 if (t_ena_acs(screen->term) != NULL)
119 ti_puts(screen->term, t_ena_acs(screen->term), 0,
147 unsigned char acs, term; local in function:__init_wacs
    [all...]
standout.c 80 const TERMINAL *t = win->screen->term;
  /src/tests/usr.bin/infocmp/
t_terminfo.sh 30 atf_set "descr" "infocmp can decode one of some existing term types"
35 for term in ansi vt100 wsvt25 sun-ss5 ibcs2 vt52 386at h19k h19kermit
38 env TERM="${term}" infocmp
49 for term in this-is-no-term nonexistent
52 env TERM="${term}" infocmp
  /src/usr.bin/tic/
tic.c 59 #include <term.h>
65 typedef struct term { struct
66 STAILQ_ENTRY(term) next;
70 struct term *base_term;
71 } TERM;
72 static STAILQ_HEAD(, term) terms = STAILQ_HEAD_INITIALIZER(terms);
101 save_term(struct cdbw *db, TERM *term)
105 size_t slen = strlen(term->name) + 1;
107 if (term->base_term != NULL)
148 TERM *term; local in function:find_newest_term
163 TERM *term; local in function:store_term
213 TERM *term; local in function:process_entry
351 TERM *term; local in function:promote
417 TERM *term, *uterm; local in function:merge_use
507 TERM *term; local in function:print_dump
574 TERM *term; local in function:write_database
615 struct term *term; local in function:main
    [all...]
  /src/tests/lib/libc/ttyio/
t_ttyio.c 82 struct termios term; local in function:ATF_TC_BODY
91 memset(&term, 0, sizeof(term));
92 term.c_iflag = TTYDEF_IFLAG;
93 term.c_oflag = TTYDEF_OFLAG;
94 term.c_cflag = TTYDEF_CFLAG;
95 term.c_lflag = TTYDEF_LFLAG;
96 cfsetspeed(&term, TTYDEF_SPEED);
99 REQUIRE_ERRNO(openpty(&m, &s, name, &term, NULL), -1);
145 if (tcsetattr(s, TCSADRAIN, &term) == -1)
    [all...]
  /src/lib/libc/termios/
tcflow.c 56 struct termios term; local in function:__weak_alias
68 if (tcgetattr(fd, &term) == -1)
70 c = term.c_cc[action == TCIOFF ? VSTOP : VSTART];
  /src/usr.bin/tset/
Makefile 5 SRCS= map.c misc.c set.c term.c tset.c
  /src/usr.bin/tabs/
tabs.c 49 #include <term.h>
85 char *term, *arg, *token, *end, *tabs = NULL, *p; local in function:main
92 term = getenv("TERM");
124 term = argv[++i];
125 if (term == NULL)
176 if (term == NULL)
177 errx(EXIT_FAILURE, "no value for $TERM and -T not given");
178 if (setupterm(term, STDOUT_FILENO, NULL) != 0)
208 term = getenv("COLUMNS")
    [all...]
  /src/usr.bin/login/
common.h 49 extern char term[64], *envinit[1], *hostname, *tty, *nested;
  /src/usr.bin/rdist/
gram.y 54 %term EQUAL 1
55 %term LP 2
56 %term RP 3
57 %term SM 4
58 %term ARROW 5
59 %term COLON 6
60 %term DCOLON 7
61 %term NAME 8
62 %term STRING 9
63 %term INSTALL 1
    [all...]
  /src/lib/libutil/
pty.c 63 openpty(int *amaster, int *aslave, char *name, struct termios *term,
78 /* term may be NULL */
125 if (term)
126 (void)tcsetattr(slave, TCSAFLUSH, term);
139 forkpty(int *amaster, char *name, struct termios *term, struct winsize *winp)
146 /* term may be NULL */
149 if (openpty(&master, &slave, name, term, winp) == -1)
  /src/usr.bin/tput/
tput.c 54 #include <term.h>
64 char *term; local in function:main
68 term = NULL;
72 term = optarg;
81 if (!term && !(term = getenv("TERM")))
82 errx(2, "No terminal type specified and no TERM "
84 setupterm(term, 0, NULL);
192 "Usage: %s [-T term] attribute [attribute-args] ...\n"
    [all...]
  /src/usr.bin/infocmp/
infocmp.c 41 #include <term.h>
438 name = getenv("TERM");
495 find_userdef(TERMINAL *term, const char *id)
499 for (i = 0; i < term->_nuserdefs; i++)
500 if (strcmp(term->_userdefs[i].id, id) == 0)
501 return &term->_userdefs[i];
506 use_terms(TERMINAL *term, size_t nuse, char **uterms)
514 if (strcmp(term->name, *uterms) == 0)
530 if (term->flags[i] == terms[j]->flags[i])
537 term->flags[i] = ABSENT_BOOLEAN
646 char *term, *Barg; local in function:main
    [all...]
  /src/sys/external/bsd/drm2/dist/include/drm/
drm_fixed.h 193 s64 sum = DRM_FIXED_ONE, term, y = x; local in function:drm_fixp_exp
199 term = y;
201 while (term >= tolerance) {
202 sum = sum + term;
204 term = drm_fixp_mul(term, div64_s64(y, count));
  /src/usr.sbin/gspa/gspa/
gsp_gram.y 55 %term <y_id> ID, STRING
56 %term <y_int> NUMBER, REGISTER
57 %term UMINUS
  /src/usr.bin/who/
utmpentry.h 53 uint16_t term; member in struct:utmpentry
  /src/usr.bin/env/
env.c 61 char **ep, term; local in function:main
68 term = '\n';
72 term = '\0';
110 (void)printf("%s%c", *ep, term);
  /src/usr.bin/tip/
tip.c 57 struct termios term; variable in typeref:struct:termios
271 term = defterm;
272 term.c_lflag &= ~(ICANON|IEXTEN|ECHO);
273 term.c_iflag &= ~(INPCK|ICRNL);
274 term.c_oflag &= ~OPOST;
275 term.c_cc[VMIN] = 1;
276 term.c_cc[VTIME] = 0;
277 defchars = term;
278 term.c_cc[VINTR] = term.c_cc[VQUIT] = term.c_cc[VSUSP]
    [all...]

Completed in 21 milliseconds

1 2 3 4 5