Symbol: term
bin/csh/dol.c
813
heredoc(Char *term)
bin/csh/dol.c
827
Dv[0] = term;
bin/csh/dol.c
858
if (c < 0 || eq(lbuf, term)) {
bin/pax/ftree.c
529
int ch, term;
bin/pax/ftree.c
548
term = '\0';
bin/pax/ftree.c
558
term = '\n';
bin/pax/ftree.c
560
while ((ch = getchar()) != term && ch != EOF)
bin/pax/gen_subs.c
140
(void)putc(term, fp);
bin/pax/gen_subs.c
81
int term;
bin/pax/gen_subs.c
83
term = zeroflag ? '\0' : '\n'; /* path termination character */
bin/pax/gen_subs.c
93
(void)putc(term, fp);
bin/pax/tar.c
173
ul_oct(u_long val, char *str, int len, int term)
bin/pax/tar.c
181
switch (term) {
bin/pax/tar.c
228
ull_oct(unsigned long long val, char *str, int len, int term)
bin/pax/tar.c
236
switch (term) {
distrib/special/more/more.c
1313
char *term;
distrib/special/more/more.c
1333
if ((term = getenv("TERM")) == 0 || tgetent(buf, term) <= 0) {
games/banner/banner.c
1111
int debug, i, j, linen, max, nchars, pc, term, trace, x, y;
games/banner/banner.c
1212
term = 0;
games/banner/banner.c
1215
while (!term) {
games/banner/banner.c
1222
printf("pc=%d, term=%d, max=%d, linen=%d, x=%d\n",pc,term,max,linen,x);
games/banner/banner.c
1224
if (x>192) term++;
games/hack/hack.termcap.c
86
char *term;
games/hack/hack.termcap.c
93
if(!(term = getenv("TERM")))
games/hack/hack.termcap.c
95
if(!strncmp(term, "5620", 4))
games/hack/hack.termcap.c
97
if(tgetent(tptr, term) < 1)
games/hack/hack.termcap.c
98
error("Unknown terminal type: %s.", term);
games/rain/rain.c
55
struct termios term;
games/rain/rain.c
63
if (tcgetattr(STDOUT_FILENO, &term) == 0 &&
games/rain/rain.c
64
(speed = cfgetospeed(&term)) > B9600)
games/tetris/screen.c
150
char *term, *fill;
games/tetris/screen.c
169
if ((term = getenv("TERM")) == NULL)
games/tetris/screen.c
171
if (tgetent(tbuf, term) <= 0)
games/worms/worms.c
179
struct termios term;
games/worms/worms.c
184
if (tcgetattr(STDOUT_FILENO, &term) == 0 &&
games/worms/worms.c
185
(speed = cfgetospeed(&term)) > B9600)
lib/libc/gen/readpassphrase.c
131
if (!(term.c_lflag & ECHO))
lib/libc/gen/readpassphrase.c
135
if (memcmp(&term, &oterm, sizeof(term)) != 0) {
lib/libc/gen/readpassphrase.c
45
struct termios term, oterm;
lib/libc/gen/readpassphrase.c
81
memcpy(&term, &oterm, sizeof(term));
lib/libc/gen/readpassphrase.c
83
term.c_lflag &= ~(ECHO | ECHONL);
lib/libc/gen/readpassphrase.c
84
if (term.c_cc[VSTATUS] != _POSIX_VDISABLE)
lib/libc/gen/readpassphrase.c
85
term.c_cc[VSTATUS] = _POSIX_VDISABLE;
lib/libc/gen/readpassphrase.c
86
(void)tcsetattr(input, TCSAFLUSH|TCSASOFT, &term);
lib/libc/gen/readpassphrase.c
88
memset(&term, 0, sizeof(term));
lib/libc/gen/readpassphrase.c
89
term.c_lflag |= ECHO;
lib/libc/termios/tcflow.c
39
struct termios term;
lib/libc/termios/tcflow.c
49
if (tcgetattr(fd, &term) == -1)
lib/libc/termios/tcflow.c
51
c = term.c_cc[action == TCIOFF ? VSTOP : VSTART];
lib/libcurses/base/lib_newterm.c
104
term->Nttyb = buf;
lib/libcurses/base/lib_newterm.c
78
TERMINAL *term = TerminalOf(SP_PARM);
lib/libcurses/base/lib_newterm.c
82
T((T_CALLED("_nc_initscr(%p) ->term %p"), (void *) SP_PARM, (void *) term));
lib/libcurses/base/lib_newterm.c
86
buf = term->Nttyb;
lib/libcurses/curses.h
1189
#define setterm(term) setupterm(term, 1, (int *)0)
lib/libcurses/curses.priv.h
2427
TERMINAL term; /* needs to be the first Element !!! */
lib/libcurses/term.h
719
#define TERMINAL struct term
lib/libcurses/tinfo/lib_setup.c
736
termp = &(my_tcb->term);
lib/libcurses/tinfo/lib_tparm.c
125
#define get_tparm_state(term) \
lib/libcurses/tinfo/lib_tparm.c
126
(term != NULL \
lib/libcurses/tinfo/lib_tparm.c
127
? &(term->tparm_state) \
lib/libcurses/tinfo/lib_tparm.c
1404
_nc_reset_tparm(TERMINAL *term)
lib/libcurses/tinfo/lib_tparm.c
1406
TPARM_STATE *tps = get_tparm_state(term);
lib/libcurses/tinfo/lib_tparm.c
469
_nc_tparm_analyze(TERMINAL *term, const char *string, char **p_is_s, int *popcount)
lib/libcurses/tinfo/lib_tparm.c
471
TPARM_STATE *tps = get_tparm_state(term);
lib/libcurses/tinfo/lib_tparm.c
604
tparm_setup(TERMINAL *term, const char *string, TPARM_DATA *result)
lib/libcurses/tinfo/lib_tparm.c
606
TPARM_STATE *tps = get_tparm_state(term);
lib/libcurses/tinfo/lib_tparm.c
639
result->num_parsed = _nc_tparm_analyze(term, string,
lib/libedit/terminal.c
841
terminal_get(EditLine *el, const char **term)
lib/libedit/terminal.c
843
*term = el->el_terminal.t_name;
lib/libedit/terminal.c
851
terminal_set(EditLine *el, const char *term)
lib/libedit/terminal.c
867
if (term == NULL)
lib/libedit/terminal.c
868
term = getenv("TERM");
lib/libedit/terminal.c
870
if (!term || !term[0])
lib/libedit/terminal.c
871
term = "dumb";
lib/libedit/terminal.c
873
if (strcmp(term, "emacs") == 0)
lib/libedit/terminal.c
878
i = tgetent(el->el_terminal.t_cap, term);
lib/libedit/terminal.c
886
"No entry for terminal type \"%s\";\n", term);
lib/libedit/terminal.c
930
el->el_terminal.t_name = term;
lib/libform/frm_hook.c
133
GEN_HOOK_SET_FUNCTION(form, term)
lib/libform/frm_hook.c
143
GEN_HOOK_GET_FUNCTION(form, term)
lib/libform/frm_hook.c
89
GEN_HOOK_SET_FUNCTION(field, term)
lib/libform/frm_hook.c
99
GEN_HOOK_GET_FUNCTION(field, term)
lib/libmenu/m_hook.c
107
GEN_HOOK_GET_FUNCTION(menu, term)
lib/libmenu/m_hook.c
141
GEN_HOOK_SET_FUNCTION(item, term)
lib/libmenu/m_hook.c
153
GEN_HOOK_GET_FUNCTION(item, term)
lib/libmenu/m_hook.c
95
GEN_HOOK_SET_FUNCTION(menu, term)
lib/libpcap/grammar.y
139
expr: term
lib/libpcap/grammar.y
140
| expr and term { gen_and($1.b, $3.b); $$ = $3; }
lib/libpcap/grammar.y
142
| expr or term { gen_or($1.b, $3.b); $$ = $3; }
lib/libpcap/grammar.y
204
term: rterm
lib/libpcap/grammar.y
205
| not term { gen_not($2.b); $$ = $2; }
lib/libpcap/grammar.y
93
%type <blk> expr id nid pid term rterm qid
lib/libskey/skeysubr.c
355
static struct termios term;
lib/libskey/skeysubr.c
360
(void) tcgetattr(fileno(stdin), &term);
lib/libskey/skeysubr.c
361
if ((echo = (term.c_lflag & ECHO))) {
lib/libskey/skeysubr.c
362
term.c_lflag &= ~ECHO;
lib/libskey/skeysubr.c
363
(void) tcsetattr(fileno(stdin), TCSAFLUSH|TCSASOFT, &term);
lib/libskey/skeysubr.c
367
term.c_lflag |= ECHO;
lib/libskey/skeysubr.c
368
(void) tcsetattr(fileno(stdin), TCSAFLUSH|TCSASOFT, &term);
regress/sys/kern/pty/ptyhog.c
48
struct termios term;
regress/sys/kern/pty/ptyhog.c
57
if (tcgetattr(sfd, &term) == -1)
regress/sys/kern/pty/ptyhog.c
59
cfmakeraw(&term);
regress/sys/kern/pty/ptyhog.c
60
if (tcsetattr(sfd, TCSAFLUSH, &term) == -1)
sys/arch/sparc64/dev/pcf8591_envctrl.c
112
cp = term;
sys/arch/sparc64/dev/pcf8591_envctrl.c
113
while (cp < term + len) {
sys/arch/sparc64/dev/pcf8591_envctrl.c
122
while (cp < term + len && *cp++);
sys/arch/sparc64/dev/pcf8591_envctrl.c
85
u_char term[256];
sys/arch/sparc64/dev/pcf8591_envctrl.c
94
if ((len = OF_getprop(node, "thermisters", term,
sys/arch/sparc64/dev/pcf8591_envctrl.c
95
sizeof(term))) < 0) {
sys/dev/ic/aic7xxx.c
4450
int term;
sys/dev/ic/aic7xxx.c
4467
term = (ahc->flags & AHC_TERM_ENB_B) != 0 ? STPWEN : 0;
sys/dev/ic/aic7xxx.c
4471
|term|ahc->seltime_b|ENSTIMER|ACTNEGEN);
sys/dev/ic/aic7xxx.c
4480
term = (ahc->flags & AHC_TERM_ENB_A) != 0 ? STPWEN : 0;
sys/dev/ic/aic7xxx.c
4487
|term|ahc->seltime
sys/dev/ic/dwhdmi.h
55
uint32_t term;
sys/dev/ic/dwhdmiphy.c
313
dwhdmi_phy_i2c_write(sc, phy_conf->term, HDMI_PHY_I2C_TXTERM);
sys/dev/pci/drm/include/drm/drm_fixed.h
198
s64 sum = DRM_FIXED_ONE, term, y = x;
sys/dev/pci/drm/include/drm/drm_fixed.h
204
term = y;
sys/dev/pci/drm/include/drm/drm_fixed.h
206
while (term >= tolerance) {
sys/dev/pci/drm/include/drm/drm_fixed.h
207
sum = sum + term;
sys/dev/pci/drm/include/drm/drm_fixed.h
209
term = drm_fixp_mul(term, div64_s64(y, count));
sys/dev/usb/uaudio.c
1208
if (u->term != v->term) {
sys/dev/usb/uaudio.c
1334
u->term = 0;
sys/dev/usb/uaudio.c
1369
if (!uaudio_getnum(&p, 2, &u->term))
sys/dev/usb/uaudio.c
1373
if (u->term >> 8 != 1)
sys/dev/usb/uaudio.c
1390
u->id, u->nch, u->term, assoc);
sys/dev/usb/uaudio.c
1393
if (!uaudio_getnum(&p, 2, &u->term))
sys/dev/usb/uaudio.c
1401
if (u->term >> 8 != 1)
sys/dev/usb/uaudio.c
1419
u->id, id, u->nch, u->term, assoc);
sys/dev/usb/uaudio.c
1543
if (!uaudio_getnum(&p, 1, &u->term))
sys/dev/usb/uaudio.c
1548
u->id, u->term, ctl);
sys/dev/usb/uaudio.c
2176
uaudio_mkname(sc, uaudio_tname(sc, u->term, 0), u->name);
sys/dev/usb/uaudio.c
2179
uaudio_mkname(sc, uaudio_tname(sc, u->term, 1), u->name);
sys/dev/usb/uaudio.c
2182
uaudio_mkname(sc, uaudio_clkname(u->term), u->name);
sys/dev/usb/uaudio.c
2309
if (u->type == UAUDIO_AC_INPUT && (u->term >> 8) == 1) {
sys/dev/usb/uaudio.c
2320
if (u->type == UAUDIO_AC_OUTPUT && (u->term >> 8) == 1) {
sys/dev/usb/uaudio.c
236
unsigned int term;
sys/dev/usb/uaudio.c
2491
unsigned int term, fmt, ctl, fmt_type, fmt_map, nch;
sys/dev/usb/uaudio.c
2493
if (!uaudio_getnum(p, 1, &term))
sys/lib/libkern/softfloat.c
2136
bits64 rem, term;
sys/lib/libkern/softfloat.c
2165
term = ( (bits64) zSig ) * zSig;
sys/lib/libkern/softfloat.c
2166
rem = ( ( (bits64) aSig )<<32 ) - term;
usr.bin/awk/awkgram.y
217
| ppattern term %prec CAT { $$ = op2(CAT, $1, $2); }
usr.bin/awk/awkgram.y
219
| term
usr.bin/awk/awkgram.y
251
| pattern term %prec CAT { $$ = op2(CAT, $1, $2); }
usr.bin/awk/awkgram.y
253
| term
usr.bin/awk/awkgram.y
299
print prarg '|' term {
usr.bin/awk/awkgram.y
302
| print prarg APPEND term {
usr.bin/awk/awkgram.y
305
| print prarg GT term {
usr.bin/awk/awkgram.y
360
term:
usr.bin/awk/awkgram.y
361
term '/' ASGNOP term { $$ = op2(DIVEQ, $1, $4); }
usr.bin/awk/awkgram.y
362
| term '+' term { $$ = op2(ADD, $1, $3); }
usr.bin/awk/awkgram.y
363
| term '-' term { $$ = op2(MINUS, $1, $3); }
usr.bin/awk/awkgram.y
364
| term '*' term { $$ = op2(MULT, $1, $3); }
usr.bin/awk/awkgram.y
365
| term '/' term { $$ = op2(DIVIDE, $1, $3); }
usr.bin/awk/awkgram.y
366
| term '%' term { $$ = op2(MOD, $1, $3); }
usr.bin/awk/awkgram.y
367
| term POWER term { $$ = op2(POWER, $1, $3); }
usr.bin/awk/awkgram.y
368
| '-' term %prec UMINUS { $$ = op1(UMINUS, $2); }
usr.bin/awk/awkgram.y
369
| '+' term %prec UMINUS { $$ = op1(UPLUS, $2); }
usr.bin/awk/awkgram.y
370
| NOT term %prec UMINUS { $$ = op1(NOT, notnull($2)); }
usr.bin/awk/awkgram.y
376
| CLOSE term { $$ = op1(CLOSE, $2); }
usr.bin/awk/awkgram.y
399
| GETLINE var LT term { $$ = op3(GETLINE, $2, itonp($3), $4); }
usr.bin/awk/awkgram.y
400
| GETLINE LT term { $$ = op3(GETLINE, NIL, itonp($2), $3); }
usr.bin/awk/awkgram.y
453
| INDIRECT term { $$ = op1(INDIRECT, $2); }
usr.bin/awk/awkgram.y
66
%type <p> pas pattern ppattern plist pplist patlist prarg term re
usr.bin/infocmp/infocmp.c
1304
dump_initializers(TERMTYPE2 *term)
usr.bin/infocmp/infocmp.c
1312
for_each_string(n, term) {
usr.bin/infocmp/infocmp.c
1313
if (VALID_STRING(term->Strings[n])) {
usr.bin/infocmp/infocmp.c
1319
for (sp = term->Strings[n];
usr.bin/infocmp/infocmp.c
1335
string_variable(ExtStrname(term, (int) n, strnames)),
usr.bin/infocmp/infocmp.c
1343
for_each_boolean(n, term) {
usr.bin/infocmp/infocmp.c
1344
switch ((int) (term->Booleans[n])) {
usr.bin/infocmp/infocmp.c
1362
n, ExtBoolname(term, (int) n, boolnames), str);
usr.bin/infocmp/infocmp.c
1368
for_each_number(n, term) {
usr.bin/infocmp/infocmp.c
1370
switch (term->Numbers[n]) {
usr.bin/infocmp/infocmp.c
1378
_nc_SPRINTF(buf, _nc_SLIMIT(sizeof(buf)) "%d", term->Numbers[n]);
usr.bin/infocmp/infocmp.c
1383
ExtNumname(term, (int) n, numnames), str);
usr.bin/infocmp/infocmp.c
1389
for_each_string(n, term) {
usr.bin/infocmp/infocmp.c
1391
if (term->Strings[n] == ABSENT_STRING)
usr.bin/infocmp/infocmp.c
1393
else if (term->Strings[n] == CANCELLED_STRING)
usr.bin/infocmp/infocmp.c
1396
str = string_variable(ExtStrname(term, (int) n, strnames));
usr.bin/infocmp/infocmp.c
1399
ExtStrname(term, (int) n, strnames), str);
usr.bin/infocmp/infocmp.c
1404
if ((NUM_BOOLEANS(term) != BOOLCOUNT)
usr.bin/infocmp/infocmp.c
1405
|| (NUM_NUMBERS(term) != NUMCOUNT)
usr.bin/infocmp/infocmp.c
1406
|| (NUM_STRINGS(term) != STRCOUNT)) {
usr.bin/infocmp/infocmp.c
1409
for (n = BOOLCOUNT; n < NUM_BOOLEANS(term); ++n) {
usr.bin/infocmp/infocmp.c
1411
n, ExtBoolname(term, (int) n, boolnames));
usr.bin/infocmp/infocmp.c
1413
for (n = NUMCOUNT; n < NUM_NUMBERS(term); ++n) {
usr.bin/infocmp/infocmp.c
1415
n, ExtNumname(term, (int) n, numnames));
usr.bin/infocmp/infocmp.c
1417
for (n = STRCOUNT; n < NUM_STRINGS(term); ++n) {
usr.bin/infocmp/infocmp.c
1419
n, ExtStrname(term, (int) n, strnames));
usr.bin/infocmp/infocmp.c
1428
dump_termtype(TERMTYPE2 *term)
usr.bin/infocmp/infocmp.c
1442
((NUM_BOOLEANS(term) != BOOLCOUNT)
usr.bin/infocmp/infocmp.c
1443
|| (NUM_NUMBERS(term) != NUMCOUNT)
usr.bin/infocmp/infocmp.c
1444
|| (NUM_STRINGS(term) != STRCOUNT))
usr.bin/infocmp/infocmp.c
1448
(void) printf("\t\t%d,\t\t/* count total Booleans */\n", NUM_BOOLEANS(term));
usr.bin/infocmp/infocmp.c
1449
(void) printf("\t\t%d,\t\t/* count total Numbers */\n", NUM_NUMBERS(term));
usr.bin/infocmp/infocmp.c
1450
(void) printf("\t\t%d,\t\t/* count total Strings */\n", NUM_STRINGS(term));
usr.bin/infocmp/infocmp.c
1453
NUM_BOOLEANS(term) - BOOLCOUNT);
usr.bin/infocmp/infocmp.c
1455
NUM_NUMBERS(term) - NUMCOUNT);
usr.bin/infocmp/infocmp.c
1457
NUM_STRINGS(term) - STRCOUNT);
usr.bin/infocmp/infocmp.c
1461
(void) term;
usr.bin/less/screen.c
268
char *term;
usr.bin/less/screen.c
274
if ((term = lgetenv("TERM")) == NULL)
usr.bin/less/screen.c
275
term = DEFAULT_TERM;
usr.bin/less/screen.c
278
if (setupterm(term, 1, &err) < 0) {
usr.bin/less/screen.c
282
errx(1, "%s: unknown terminal type", term);
usr.bin/login/login.c
132
char term[64], *hostname, *tty;
usr.bin/login/login.c
587
if (term[0] == '\0')
usr.bin/login/login.c
588
(void)strlcpy(term, stypeof(tty), sizeof(term));
usr.bin/login/login.c
591
if (setenv("TERM", term, 0) == -1 ||
usr.bin/mandoc/roff_escape.c
102
term = '\0';
usr.bin/mandoc/roff_escape.c
195
term = '\b';
usr.bin/mandoc/roff_escape.c
208
term = '\b';
usr.bin/mandoc/roff_escape.c
212
term = '\b';
usr.bin/mandoc/roff_escape.c
216
term = '\b';
usr.bin/mandoc/roff_escape.c
220
term = '\b';
usr.bin/mandoc/roff_escape.c
224
term = '\b';
usr.bin/mandoc/roff_escape.c
228
term = '\b';
usr.bin/mandoc/roff_escape.c
244
term = ']';
usr.bin/mandoc/roff_escape.c
248
term = '\'';
usr.bin/mandoc/roff_escape.c
271
if ((term == '\b' || (term == '\0' && maxl == INT_MAX)) &&
usr.bin/mandoc/roff_escape.c
279
if (term == '\b') {
usr.bin/mandoc/roff_escape.c
293
term = buf[snam];
usr.bin/mandoc/roff_escape.c
304
if (term == '\b')
usr.bin/mandoc/roff_escape.c
305
term = buf[iarg++];
usr.bin/mandoc/roff_escape.c
306
} else if (term == '\0' && maxl == INT_MAX) {
usr.bin/mandoc/roff_escape.c
321
term = ']';
usr.bin/mandoc/roff_escape.c
344
if (escterm == 0 && buf[iendarg] == term) {
usr.bin/mandoc/roff_escape.c
355
(buf[snam] == term || buf[inam] == 'N'))
usr.bin/mandoc/roff_escape.c
441
if (term != '\0' && argl == 1 && buf[iarg] != '-') {
usr.bin/mandoc/roff_escape.c
83
char term; /* byte terminating the argument */
usr.bin/seq/seq.c
210
fputs(term, stdout);
usr.bin/seq/seq.c
97
const char *term = "\n";
usr.bin/ssh/clientloop.c
2701
const char *term, struct termios *tiop, int in_fd, struct sshbuf *cmd,
usr.bin/ssh/clientloop.c
2723
if ((r = sshpkt_put_cstring(ssh, term != NULL ? term : ""))
usr.bin/ssh/misc.c
2633
opt_match(const char **opts, const char *term)
usr.bin/ssh/misc.c
2635
if (strncasecmp((*opts), term, strlen(term)) == 0 &&
usr.bin/ssh/misc.c
2636
(*opts)[strlen(term)] == '=') {
usr.bin/ssh/misc.c
2637
*opts += strlen(term) + 1;
usr.bin/ssh/misc.h
219
int opt_match(const char **opts, const char *term);
usr.bin/ssh/mux.c
1450
cctx->term, &cctx->tio, c->rfd, cctx->cmd, cctx->env);
usr.bin/ssh/mux.c
1470
free(cctx->term);
usr.bin/ssh/mux.c
1981
const char *term = NULL;
usr.bin/ssh/mux.c
1998
if ((term = lookup_env_in_list("TERM", options.setenv,
usr.bin/ssh/mux.c
1999
options.num_setenv)) == NULL || *term == '\0')
usr.bin/ssh/mux.c
2000
term = getenv("TERM");
usr.bin/ssh/mux.c
2016
(r = sshbuf_put_cstring(m, term == NULL ? "" : term)) != 0 ||
usr.bin/ssh/mux.c
337
cctx->term = NULL;
usr.bin/ssh/mux.c
348
(r = sshbuf_get_cstring(m, &cctx->term, NULL)) != 0 ||
usr.bin/ssh/mux.c
355
free(cctx->term);
usr.bin/ssh/mux.c
383
cctx->want_subsys, cctx->term, cmd, env_len);
usr.bin/ssh/mux.c
401
free(cctx->term);
usr.bin/ssh/mux.c
422
free(cctx->term);
usr.bin/ssh/mux.c
65
char *term;
usr.bin/ssh/session.c
1557
if ((r = sshpkt_get_cstring(ssh, &s->term, NULL)) != 0 ||
usr.bin/ssh/session.c
1564
if (strcmp(s->term, "") == 0) {
usr.bin/ssh/session.c
1565
free(s->term);
usr.bin/ssh/session.c
1566
s->term = NULL;
usr.bin/ssh/session.c
1572
free(s->term);
usr.bin/ssh/session.c
1573
s->term = NULL;
usr.bin/ssh/session.c
2086
free(s->term);
usr.bin/ssh/session.c
835
if (s->term)
usr.bin/ssh/session.c
836
child_set_env(&env, &envsize, "TERM", s->term);
usr.bin/ssh/session.h
41
char *term;
usr.bin/ssh/ssh.c
2129
const char *display, *term;
usr.bin/ssh/ssh.c
2154
if ((term = lookup_env_in_list("TERM", options.setenv,
usr.bin/ssh/ssh.c
2155
options.num_setenv)) == NULL || *term == '\0')
usr.bin/ssh/ssh.c
2156
term = getenv("TERM");
usr.bin/ssh/ssh.c
2158
options.session_type == SESSION_TYPE_SUBSYSTEM, term,
usr.bin/tmux/cmd-show-messages.c
55
struct tty_term *term;
usr.bin/tmux/cmd-show-messages.c
59
LIST_FOREACH(term, &tty_terms, entry) {
usr.bin/tmux/cmd-show-messages.c
60
if (args_has(args, 't') && tc != NULL && term != tc->tty.term)
usr.bin/tmux/cmd-show-messages.c
67
term->name, term->tty->client->name, term->flags);
usr.bin/tmux/cmd-show-messages.c
70
cmdq_print(item, "%s", tty_term_describe(term, i));
usr.bin/tmux/colour.c
302
if (c != NULL && (c->tty.flags & TTY_OPENED) && c->tty.term != NULL)
usr.bin/tmux/colour.c
303
flags = c->tty.term->flags;
usr.bin/tmux/format.c
1528
struct tty_term *term;
usr.bin/tmux/format.c
1533
term = ft->c->tty.term;
usr.bin/tmux/format.c
1535
if (term->flags & TERM_RGBCOLOURS)
usr.bin/tmux/format.c
1537
else if (term->flags & TERM_256COLOURS)
usr.bin/tmux/format.c
1540
colours = tty_term_number(term, TTYC_COLORS);
usr.bin/tmux/format.c
6143
ft->c->tty.term == NULL ||
usr.bin/tmux/format.c
6149
if (tty_term_has_name(ft->c->tty.term, copy))
usr.bin/tmux/format.c
6155
if (tty_feature_present(ft->c->tty.term, copy))
usr.bin/tmux/fuzzy.c
433
fuzzy_parse_term(const char *start, const char *end, struct fuzzy_term *term)
usr.bin/tmux/fuzzy.c
435
memset(term, 0, sizeof *term);
usr.bin/tmux/fuzzy.c
439
term->inverse = 1;
usr.bin/tmux/fuzzy.c
445
term->exact = 1;
usr.bin/tmux/fuzzy.c
448
term->exact = 1;
usr.bin/tmux/fuzzy.c
449
term->prefix = 1;
usr.bin/tmux/fuzzy.c
455
term->exact = 1;
usr.bin/tmux/fuzzy.c
456
term->suffix = 1;
usr.bin/tmux/fuzzy.c
462
if (term->inverse)
usr.bin/tmux/fuzzy.c
463
term->exact = 1;
usr.bin/tmux/fuzzy.c
464
term->text = start;
usr.bin/tmux/fuzzy.c
465
term->len = end - start;
usr.bin/tmux/fuzzy.c
471
fuzzy_match_term(const struct fuzzy_term *term, struct utf8_data *tok,
usr.bin/tmux/fuzzy.c
477
toklen = fuzzy_decode(term->text, term->len, tok);
usr.bin/tmux/fuzzy.c
478
if (term->exact) {
usr.bin/tmux/fuzzy.c
480
term->prefix, term->suffix, &value,
usr.bin/tmux/fuzzy.c
481
term->inverse ? NULL : matched);
usr.bin/tmux/fuzzy.c
484
&value, term->inverse ? NULL : matched);
usr.bin/tmux/fuzzy.c
487
if (term->inverse)
usr.bin/tmux/fuzzy.c
501
struct fuzzy_term term;
usr.bin/tmux/fuzzy.c
513
if (!fuzzy_parse_term(sp, cp, &term))
usr.bin/tmux/fuzzy.c
516
if (!fuzzy_match_term(&term, tok, cs, ncs, fold, score,
usr.bin/tmux/screen-redraw.c
1620
if ((c->flags & CLIENT_UTF8) && tty_term_has(tty->term, TTYC_BIDI))
usr.bin/tmux/server-client.c
1334
if (tty_term_has(c->tty.term, TTYC_ENBP))
usr.bin/tmux/server-fn.c
213
tty_raw(&c->tty, tty_term_string(c->tty.term, TTYC_SMCUP));
usr.bin/tmux/server-fn.c
214
tty_raw(&c->tty, tty_term_string(c->tty.term, TTYC_CLEAR));
usr.bin/tmux/server-fn.c
215
tty_raw(&c->tty, tty_term_string(c->tty.term, TTYC_E3));
usr.bin/tmux/tmux.h
1780
struct tty_term *term;
usr.bin/tmux/tty-acs.c
220
if (tty_term_has(tty->term, TTYC_U8) &&
usr.bin/tmux/tty-acs.c
221
tty_term_number(tty->term, TTYC_U8) == 0)
usr.bin/tmux/tty-acs.c
237
if (tty->term->acs[ch][0] == '\0')
usr.bin/tmux/tty-acs.c
239
return (&tty->term->acs[ch][0]);
usr.bin/tmux/tty-draw.c
60
if (px + nx >= tty->sx && tty_term_has(tty->term, TTYC_EL)) {
usr.bin/tmux/tty-draw.c
67
if (px == 0 && tty_term_has(tty->term, TTYC_EL1)) {
usr.bin/tmux/tty-draw.c
74
if (tty_term_has(tty->term, TTYC_ECH)) {
usr.bin/tmux/tty-features.c
436
tty_feature_present(struct tty_term *term, const char *name)
usr.bin/tmux/tty-features.c
446
if (term->features & (1 << i))
usr.bin/tmux/tty-features.c
458
if (tf->flags != 0 && (term->flags & tf->flags) != tf->flags)
usr.bin/tmux/tty-features.c
464
if (!tty_term_has_name(term, copy)) {
usr.bin/tmux/tty-features.c
475
tty_apply_features(struct tty_term *term, int feat)
usr.bin/tmux/tty-features.c
486
if ((term->features & (1 << i)) || (~feat & (1 << i)))
usr.bin/tmux/tty-features.c
495
tty_term_apply(term, *capability, 1);
usr.bin/tmux/tty-features.c
499
term->flags |= tf->flags;
usr.bin/tmux/tty-features.c
501
if ((term->features | feat) == term->features)
usr.bin/tmux/tty-features.c
503
term->features |= feat;
usr.bin/tmux/tty-keys.c
526
s = tty_term_string(tty->term, tdkc->code);
usr.bin/tmux/tty-term.c
360
tty_term_apply(struct tty_term *term, const char *capabilities, int quiet)
usr.bin/tmux/tty-term.c
366
const char *errstr, *name = term->name;
usr.bin/tmux/tty-term.c
402
code = &term->codes[i];
usr.bin/tmux/tty-term.c
436
tty_term_apply_overrides(struct tty_term *term)
usr.bin/tmux/tty-term.c
454
if (first != NULL && fnmatch(first, term->name, 0) == 0)
usr.bin/tmux/tty-term.c
455
tty_term_apply(term, s + offset, 0);
usr.bin/tmux/tty-term.c
460
log_debug("SIXEL flag is %d", !!(term->flags & TERM_SIXEL));
usr.bin/tmux/tty-term.c
463
if (tty_term_has(term, TTYC_SETRGBF) &&
usr.bin/tmux/tty-term.c
464
tty_term_has(term, TTYC_SETRGBB))
usr.bin/tmux/tty-term.c
465
term->flags |= TERM_RGBCOLOURS;
usr.bin/tmux/tty-term.c
467
term->flags &= ~TERM_RGBCOLOURS;
usr.bin/tmux/tty-term.c
468
log_debug("RGBCOLOURS flag is %d", !!(term->flags & TERM_RGBCOLOURS));
usr.bin/tmux/tty-term.c
474
if (tty_term_has(term, TTYC_CMG) && tty_term_has(term, TTYC_CLMG))
usr.bin/tmux/tty-term.c
475
term->flags |= TERM_DECSLRM;
usr.bin/tmux/tty-term.c
477
term->flags &= ~TERM_DECSLRM;
usr.bin/tmux/tty-term.c
478
log_debug("DECSLRM flag is %d", !!(term->flags & TERM_DECSLRM));
usr.bin/tmux/tty-term.c
484
if (tty_term_has(term, TTYC_RECT))
usr.bin/tmux/tty-term.c
485
term->flags |= TERM_DECFRA;
usr.bin/tmux/tty-term.c
487
term->flags &= ~TERM_DECFRA;
usr.bin/tmux/tty-term.c
488
log_debug("DECFRA flag is %d", !!(term->flags & TERM_DECFRA));
usr.bin/tmux/tty-term.c
505
if (!tty_term_flag(term, TTYC_AM))
usr.bin/tmux/tty-term.c
506
term->flags |= TERM_NOAM;
usr.bin/tmux/tty-term.c
508
term->flags &= ~TERM_NOAM;
usr.bin/tmux/tty-term.c
509
log_debug("NOAM flag is %d", !!(term->flags & TERM_NOAM));
usr.bin/tmux/tty-term.c
512
memset(term->acs, 0, sizeof term->acs);
usr.bin/tmux/tty-term.c
513
if (tty_term_has(term, TTYC_ACSC))
usr.bin/tmux/tty-term.c
514
acs = tty_term_string(term, TTYC_ACSC);
usr.bin/tmux/tty-term.c
518
term->acs[(u_char) acs[0]][0] = acs[1];
usr.bin/tmux/tty-term.c
525
struct tty_term *term;
usr.bin/tmux/tty-term.c
540
term = xcalloc(1, sizeof *term);
usr.bin/tmux/tty-term.c
541
term->tty = tty;
usr.bin/tmux/tty-term.c
542
term->name = xstrdup(name);
usr.bin/tmux/tty-term.c
543
term->codes = xcalloc(tty_term_ncodes(), sizeof *term->codes);
usr.bin/tmux/tty-term.c
544
LIST_INSERT_HEAD(&tty_terms, term, entry);
usr.bin/tmux/tty-term.c
560
code = &term->codes[j];
usr.bin/tmux/tty-term.c
595
if (first != NULL && fnmatch(first, term->name, 0) == 0)
usr.bin/tmux/tty-term.c
612
tty_term_apply_overrides(term);
usr.bin/tmux/tty-term.c
615
if (!tty_term_has(term, TTYC_CLEAR)) {
usr.bin/tmux/tty-term.c
619
if (!tty_term_has(term, TTYC_CUP)) {
usr.bin/tmux/tty-term.c
636
s = tty_term_string(term, TTYC_CLEAR);
usr.bin/tmux/tty-term.c
637
if (tty_term_flag(term, TTYC_XT) || strncmp(s, "\033[", 2) == 0) {
usr.bin/tmux/tty-term.c
638
term->flags |= TERM_VT100LIKE;
usr.bin/tmux/tty-term.c
643
if ((tty_term_flag(term, TTYC_TC) || tty_term_has(term, TTYC_RGB)) &&
usr.bin/tmux/tty-term.c
644
(!tty_term_has(term, TTYC_SETRGBF) ||
usr.bin/tmux/tty-term.c
645
!tty_term_has(term, TTYC_SETRGBB)))
usr.bin/tmux/tty-term.c
649
if (tty_apply_features(term, *feat))
usr.bin/tmux/tty-term.c
650
tty_term_apply_overrides(term);
usr.bin/tmux/tty-term.c
654
log_debug("%s%s", name, tty_term_describe(term, i));
usr.bin/tmux/tty-term.c
656
return (term);
usr.bin/tmux/tty-term.c
659
tty_term_free(term);
usr.bin/tmux/tty-term.c
664
tty_term_free(struct tty_term *term)
usr.bin/tmux/tty-term.c
668
log_debug("removing term %s", term->name);
usr.bin/tmux/tty-term.c
671
if (term->codes[i].type == TTYCODE_STRING)
usr.bin/tmux/tty-term.c
672
free(term->codes[i].value.string);
usr.bin/tmux/tty-term.c
674
free(term->codes);
usr.bin/tmux/tty-term.c
676
LIST_REMOVE(term, entry);
usr.bin/tmux/tty-term.c
677
free(term->name);
usr.bin/tmux/tty-term.c
678
free(term);
usr.bin/tmux/tty-term.c
763
tty_term_has(struct tty_term *term, enum tty_code_code code)
usr.bin/tmux/tty-term.c
765
return (term->codes[code].type != TTYCODE_NONE);
usr.bin/tmux/tty-term.c
769
tty_term_has_name(struct tty_term *term, const char *name)
usr.bin/tmux/tty-term.c
775
return (tty_term_has(term, i));
usr.bin/tmux/tty-term.c
781
tty_term_string(struct tty_term *term, enum tty_code_code code)
usr.bin/tmux/tty-term.c
783
if (!tty_term_has(term, code))
usr.bin/tmux/tty-term.c
785
if (term->codes[code].type != TTYCODE_STRING)
usr.bin/tmux/tty-term.c
787
return (term->codes[code].value.string);
usr.bin/tmux/tty-term.c
791
tty_term_string_i(struct tty_term *term, enum tty_code_code code, int a)
usr.bin/tmux/tty-term.c
793
const char *x = tty_term_string(term, code), *s;
usr.bin/tmux/tty-term.c
804
tty_term_string_ii(struct tty_term *term, enum tty_code_code code, int a, int b)
usr.bin/tmux/tty-term.c
806
const char *x = tty_term_string(term, code), *s;
usr.bin/tmux/tty-term.c
817
tty_term_string_iii(struct tty_term *term, enum tty_code_code code, int a,
usr.bin/tmux/tty-term.c
820
const char *x = tty_term_string(term, code), *s;
usr.bin/tmux/tty-term.c
831
tty_term_string_s(struct tty_term *term, enum tty_code_code code, const char *a)
usr.bin/tmux/tty-term.c
833
const char *x = tty_term_string(term, code), *s;
usr.bin/tmux/tty-term.c
844
tty_term_string_ss(struct tty_term *term, enum tty_code_code code,
usr.bin/tmux/tty-term.c
847
const char *x = tty_term_string(term, code), *s;
usr.bin/tmux/tty-term.c
858
tty_term_number(struct tty_term *term, enum tty_code_code code)
usr.bin/tmux/tty-term.c
860
if (!tty_term_has(term, code))
usr.bin/tmux/tty-term.c
862
if (term->codes[code].type != TTYCODE_NUMBER)
usr.bin/tmux/tty-term.c
864
return (term->codes[code].value.number);
usr.bin/tmux/tty-term.c
868
tty_term_flag(struct tty_term *term, enum tty_code_code code)
usr.bin/tmux/tty-term.c
870
if (!tty_term_has(term, code))
usr.bin/tmux/tty-term.c
872
if (term->codes[code].type != TTYCODE_FLAG)
usr.bin/tmux/tty-term.c
874
return (term->codes[code].value.flag);
usr.bin/tmux/tty-term.c
878
tty_term_describe(struct tty_term *term, enum tty_code_code code)
usr.bin/tmux/tty-term.c
883
switch (term->codes[code].type) {
usr.bin/tmux/tty-term.c
889
strnvis(out, term->codes[code].value.string, sizeof out,
usr.bin/tmux/tty-term.c
898
term->codes[code].value.number);
usr.bin/tmux/tty-term.c
903
term->codes[code].value.flag ? "true" : "false");
usr.bin/tmux/tty.c
1076
if (tty_term_flag(tty->term, TTYC_BCE))
usr.bin/tmux/tty.c
1194
if (px + nx >= tty->sx && tty_term_has(tty->term, TTYC_EL)) {
usr.bin/tmux/tty.c
1201
if (px == 0 && tty_term_has(tty->term, TTYC_EL1)) {
usr.bin/tmux/tty.c
1208
if (tty_term_has(tty->term, TTYC_ECH)) {
usr.bin/tmux/tty.c
1340
tty_term_has(tty->term, TTYC_ED)) {
usr.bin/tmux/tty.c
1351
if ((tty->term->flags & TERM_DECFRA) && !COLOUR_DEFAULT(bg)) {
usr.bin/tmux/tty.c
1362
tty_term_has(tty->term, TTYC_CSR) &&
usr.bin/tmux/tty.c
1363
tty_term_has(tty->term, TTYC_INDN)) {
usr.bin/tmux/tty.c
1376
tty_term_has(tty->term, TTYC_CSR) &&
usr.bin/tmux/tty.c
1378
tty_term_has(tty->term, TTYC_INDN)) {
usr.bin/tmux/tty.c
142
(tty->term->flags & TERM_VT100LIKE)) {
usr.bin/tmux/tty.c
1529
if (tty_term_has(tty->term, TTYC_SYNC)) {
usr.bin/tmux/tty.c
1544
if (tty_term_has(tty->term, TTYC_SYNC)) {
usr.bin/tmux/tty.c
1553
if (c->session == NULL || c->tty.term == NULL)
usr.bin/tmux/tty.c
1601
(!tty_term_has(tty->term, TTYC_ICH) &&
usr.bin/tmux/tty.c
1602
!tty_term_has(tty->term, TTYC_ICH1)) ||
usr.bin/tmux/tty.c
1623
(!tty_term_has(tty->term, TTYC_DCH) &&
usr.bin/tmux/tty.c
1624
!tty_term_has(tty->term, TTYC_DCH1)) ||
usr.bin/tmux/tty.c
1653
!tty_term_has(tty->term, TTYC_CSR) ||
usr.bin/tmux/tty.c
1654
!tty_term_has(tty->term, TTYC_IL1) ||
usr.bin/tmux/tty.c
1680
!tty_term_has(tty->term, TTYC_CSR) ||
usr.bin/tmux/tty.c
1681
!tty_term_has(tty->term, TTYC_DL1) ||
usr.bin/tmux/tty.c
1736
!tty_term_has(tty->term, TTYC_CSR) ||
usr.bin/tmux/tty.c
1737
(!tty_term_has(tty->term, TTYC_RI) &&
usr.bin/tmux/tty.c
1738
!tty_term_has(tty->term, TTYC_RIN)) ||
usr.bin/tmux/tty.c
1752
if (tty_term_has(tty->term, TTYC_RI))
usr.bin/tmux/tty.c
1769
!tty_term_has(tty->term, TTYC_CSR) ||
usr.bin/tmux/tty.c
1809
!tty_term_has(tty->term, TTYC_CSR) ||
usr.bin/tmux/tty.c
1822
if (ctx->n == 1 || !tty_term_has(tty->term, TTYC_INDN)) {
usr.bin/tmux/tty.c
1847
!tty_term_has(tty->term, TTYC_CSR) ||
usr.bin/tmux/tty.c
1848
(!tty_term_has(tty->term, TTYC_RI) &&
usr.bin/tmux/tty.c
1849
!tty_term_has(tty->term, TTYC_RIN)) ||
usr.bin/tmux/tty.c
1863
if (tty_term_has(tty->term, TTYC_RIN))
usr.bin/tmux/tty.c
2020
(tty->term->flags & TERM_NOAM) ||
usr.bin/tmux/tty.c
2065
if (!tty_term_has(tty->term, TTYC_MS))
usr.bin/tmux/tty.c
2115
if ((tty->term->flags & TERM_NOAM) &&
usr.bin/tmux/tty.c
2207
if (!tty_term_has(tty->term, TTYC_CSR))
usr.bin/tmux/tty.c
2289
(tty->term->flags & TERM_NOAM) ||
usr.bin/tmux/tty.c
2310
struct tty_term *term = tty->term;
usr.bin/tmux/tty.c
2340
if (cx == 0 && cy == 0 && tty_term_has(term, TTYC_HOME)) {
usr.bin/tmux/tty.c
2366
if (cx == thisx - 1 && tty_term_has(term, TTYC_CUB1)) {
usr.bin/tmux/tty.c
2372
if (cx == thisx + 1 && tty_term_has(term, TTYC_CUF1)) {
usr.bin/tmux/tty.c
2384
if ((u_int) abs(change) > cx && tty_term_has(term, TTYC_HPA)) {
usr.bin/tmux/tty.c
2388
tty_term_has(term, TTYC_CUB) &&
usr.bin/tmux/tty.c
2390
if (change == 2 && tty_term_has(term, TTYC_CUB1)) {
usr.bin/tmux/tty.c
2398
tty_term_has(term, TTYC_CUF) &&
usr.bin/tmux/tty.c
2410
cy == thisy - 1 && tty_term_has(term, TTYC_CUU1)) {
usr.bin/tmux/tty.c
2417
cy == thisy + 1 && tty_term_has(term, TTYC_CUD1)) {
usr.bin/tmux/tty.c
2432
if (tty_term_has(term, TTYC_VPA)) {
usr.bin/tmux/tty.c
2436
} else if (change > 0 && tty_term_has(term, TTYC_CUU)) {
usr.bin/tmux/tty.c
2439
} else if (change < 0 && tty_term_has(term, TTYC_CUD)) {
usr.bin/tmux/tty.c
2550
if (!tty_term_has(tty->term, TTYC_SETAB)) {
usr.bin/tmux/tty.c
2604
if (tty_term_has(tty->term, TTYC_REV))
usr.bin/tmux/tty.c
2606
else if (tty_term_has(tty->term, TTYC_SMSO))
usr.bin/tmux/tty.c
2645
if (!tty_term_flag(tty->term, TTYC_AX))
usr.bin/tmux/tty.c
2714
!tty_term_has(tty->term, TTYC_NOBR))
usr.bin/tmux/tty.c
2724
if (tty->term->flags & TERM_RGBCOLOURS)
usr.bin/tmux/tty.c
2731
if (tty->term->flags & TERM_256COLOURS)
usr.bin/tmux/tty.c
2734
colours = tty_term_number(tty->term, TTYC_COLORS);
usr.bin/tmux/tty.c
274
tty->term = tty_term_create(tty, c->term_name, c->term_caps,
usr.bin/tmux/tty.c
276
if (tty->term == NULL) {
usr.bin/tmux/tty.c
2785
if (tty->term->flags & TERM_RGBCOLOURS)
usr.bin/tmux/tty.c
2792
if (tty->term->flags & TERM_256COLOURS)
usr.bin/tmux/tty.c
2795
colours = tty_term_number(tty->term, TTYC_COLORS);
usr.bin/tmux/tty.c
2834
if (!tty_term_has(tty->term, TTYC_SETULC1)) {
usr.bin/tmux/tty.c
2867
if (tty->term->flags & TERM_256COLOURS) {
usr.bin/tmux/tty.c
2899
if (tty->term->flags & TERM_256COLOURS) {
usr.bin/tmux/tty.c
2951
if (tty_term_has(tty->term, TTYC_SETULC))
usr.bin/tmux/tty.c
2953
else if (tty_term_has(tty->term, TTYC_SETAL) &&
usr.bin/tmux/tty.c
2954
tty_term_has(tty->term, TTYC_RGB))
usr.bin/tmux/tty.c
2968
if (*type == '3' && tty_term_has(tty->term, TTYC_SETAF))
usr.bin/tmux/tty.c
2970
else if (tty_term_has(tty->term, TTYC_SETAB))
usr.bin/tmux/tty.c
2977
if (*type == '3' && tty_term_has(tty->term, TTYC_SETRGBF))
usr.bin/tmux/tty.c
2979
else if (tty_term_has(tty->term, TTYC_SETRGBB))
usr.bin/tmux/tty.c
3077
if (tty_term_has(tty->term, TTYC_SPB))
usr.bin/tmux/tty.c
363
if (tty_term_has(tty->term, TTYC_KMOUS)) {
usr.bin/tmux/tty.c
367
if (tty_term_has(tty->term, TTYC_ENBP))
usr.bin/tmux/tty.c
370
if (tty->term->flags & TERM_VT100LIKE) {
usr.bin/tmux/tty.c
394
if (tty->term->flags & TERM_VT100LIKE) {
usr.bin/tmux/tty.c
427
if (tty->term->flags & TERM_VT100LIKE) {
usr.bin/tmux/tty.c
463
tty_raw(tty, tty_term_string_ii(tty->term, TTYC_CSR, 0, ws.ws_row - 1));
usr.bin/tmux/tty.c
465
tty_raw(tty, tty_term_string(tty->term, TTYC_RMACS));
usr.bin/tmux/tty.c
466
tty_raw(tty, tty_term_string(tty->term, TTYC_SGR0));
usr.bin/tmux/tty.c
467
tty_raw(tty, tty_term_string(tty->term, TTYC_RMKX));
usr.bin/tmux/tty.c
468
tty_raw(tty, tty_term_string(tty->term, TTYC_CLEAR));
usr.bin/tmux/tty.c
470
if (tty_term_has(tty->term, TTYC_SE))
usr.bin/tmux/tty.c
471
tty_raw(tty, tty_term_string(tty->term, TTYC_SE));
usr.bin/tmux/tty.c
472
else if (tty_term_has(tty->term, TTYC_SS))
usr.bin/tmux/tty.c
473
tty_raw(tty, tty_term_string_i(tty->term, TTYC_SS, 0));
usr.bin/tmux/tty.c
476
tty_raw(tty, tty_term_string(tty->term, TTYC_CR));
usr.bin/tmux/tty.c
478
tty_raw(tty, tty_term_string(tty->term, TTYC_CNORM));
usr.bin/tmux/tty.c
479
if (tty_term_has(tty->term, TTYC_KMOUS)) {
usr.bin/tmux/tty.c
483
if (tty_term_has(tty->term, TTYC_DSBP))
usr.bin/tmux/tty.c
484
tty_raw(tty, tty_term_string(tty->term, TTYC_DSBP));
usr.bin/tmux/tty.c
486
if (tty->term->flags & TERM_VT100LIKE)
usr.bin/tmux/tty.c
488
tty_raw(tty, tty_term_string(tty->term, TTYC_DSFCS));
usr.bin/tmux/tty.c
489
tty_raw(tty, tty_term_string(tty->term, TTYC_DSEKS));
usr.bin/tmux/tty.c
492
tty_raw(tty, tty_term_string(tty->term, TTYC_DSMG));
usr.bin/tmux/tty.c
493
tty_raw(tty, tty_term_string(tty->term, TTYC_RMCUP));
usr.bin/tmux/tty.c
495
if (tty->term->flags & TERM_VT100LIKE)
usr.bin/tmux/tty.c
514
tty_term_free(tty->term);
usr.bin/tmux/tty.c
534
if (tty_apply_features(tty->term, c->term_features))
usr.bin/tmux/tty.c
535
tty_term_apply_overrides(tty->term);
usr.bin/tmux/tty.c
540
tty_puts(tty, tty_term_string(tty->term, TTYC_ENEKS));
usr.bin/tmux/tty.c
542
tty_puts(tty, tty_term_string(tty->term, TTYC_ENFCS));
usr.bin/tmux/tty.c
543
if (tty->term->flags & TERM_VT100LIKE)
usr.bin/tmux/tty.c
579
tty_puts(tty, tty_term_string(tty->term, code));
usr.bin/tmux/tty.c
587
tty_puts(tty, tty_term_string_i(tty->term, code, a));
usr.bin/tmux/tty.c
595
tty_puts(tty, tty_term_string_ii(tty->term, code, a, b));
usr.bin/tmux/tty.c
603
tty_puts(tty, tty_term_string_iii(tty->term, code, a, b, c));
usr.bin/tmux/tty.c
610
tty_puts(tty, tty_term_string_s(tty->term, code, a));
usr.bin/tmux/tty.c
618
tty_puts(tty, tty_term_string_ss(tty->term, code, a, b));
usr.bin/tmux/tty.c
654
if ((tty->term->flags & TERM_NOAM) &&
usr.bin/tmux/tty.c
680
if (tty->term->flags & TERM_NOAM)
usr.bin/tmux/tty.c
690
if ((tty->term->flags & TERM_NOAM) &&
usr.bin/tmux/tty.c
711
if (tty_term_has(tty->term, TTYC_SITM)) {
usr.bin/tmux/tty.c
72
(tty->term->flags & TERM_DECSLRM)
usr.bin/tmux/tty.c
724
if (!tty_term_has(tty->term, TTYC_TSL) ||
usr.bin/tmux/tty.c
725
!tty_term_has(tty->term, TTYC_FSL))
usr.bin/tmux/tty.c
736
if (!tty_term_has(tty->term, TTYC_SWD) ||
usr.bin/tmux/tty.c
737
!tty_term_has(tty->term, TTYC_FSL))
usr.bin/tmux/tty.c
820
if (tty_term_has(tty->term, TTYC_SE))
usr.bin/tmux/tty.c
829
if (tty_term_has(tty->term, TTYC_SS)) {
usr.bin/tmux/tty.c
838
if (tty_term_has(tty->term, TTYC_SS)) {
usr.bin/tmux/tty.c
847
if (tty_term_has(tty->term, TTYC_SS)) {
usr.bin/tmux/tty.c
863
struct tty_term *term = tty->term;
usr.bin/tmux/tty.c
883
if ((changed & ALL_MOUSE_MODES) && tty_term_has(term, TTYC_KMOUS)) {
usr.bin/tmux/tty.c
906
if (tty_term_has(tty->term, code))
usr.bin/tmux/window.c
1971
window_pane_search(struct window_pane *wp, const char *term, int regex,
usr.bin/tmux/window.c
1984
xasprintf(&new, "*%s*", term);
usr.bin/tmux/window.c
1988
if (regcomp(&r, term, flags|REG_EXTENDED) != 0)
usr.bin/top/machine.c
381
cmd_matches(struct kinfo_proc *proc, char *term)
usr.bin/top/machine.c
386
if (!term) {
usr.bin/top/machine.c
391
if (strstr(proc->p_comm, term))
usr.bin/top/machine.c
394
if (strstr(proc->p_name, term))
usr.bin/top/machine.c
406
if (strstr(*args, term))
usr.bin/tput/tput.c
377
char *term;
usr.bin/tput/tput.c
398
term = getenv("TERM");
usr.bin/tput/tput.c
408
term = optarg;
usr.bin/tput/tput.c
444
if (term == 0 || *term == '\0')
usr.bin/tput/tput.c
450
if (setupterm(term, fd, &errret) != OK && errret <= 0)
usr.bin/tput/tput.c
451
quit(ErrTermType, "unknown terminal \"%s\"", term);
usr.bin/vi/common/cut.h
60
} term;
usr.bin/vi/vi/v_ex.c
294
if (tp->term != TERM_OK) {
usr.bin/vi/vi/v_ex.c
392
if (tp->term == TERM_CEDIT) {
usr.bin/vi/vi/v_ex.c
400
if (tp->term != TERM_OK)
usr.bin/vi/vi/v_search.c
90
if (tp->term == TERM_BS)
usr.bin/vi/vi/v_search.c
98
if (tp->term == TERM_SEARCH) {
usr.bin/vi/vi/v_txt.c
306
tp->term = TERM_OK;
usr.bin/vi/vi/v_txt.c
533
tp->term = TERM_ESC;
usr.bin/vi/vi/v_txt.c
573
tp->term = TERM_CEDIT;
usr.bin/vi/vi/v_txt.c
674
tp->term = TERM_CR;
usr.bin/vi/vi/v_txt.c
682
tp->term = TERM_SEARCH;
usr.bin/vi/vi/v_txt.c
865
tp->term = TERM_ESC;
usr.bin/vi/vi/v_txt.c
872
tp->term = TERM_SEARCH;
usr.bin/vi/vi/v_txt.c
980
tp->term = TERM_BS;
usr.sbin/amd/amd/afs_ops.c
572
afs_cont(int rc, int term, void *closure)
usr.sbin/amd/amd/afs_ops.c
594
if (rc || term) {
usr.sbin/amd/amd/afs_ops.c
597
if (term) {
usr.sbin/amd/amd/afs_ops.c
603
plog(XLOG_ERROR, "mount for %s got signal %d", cp->mp->am_path, term);
usr.sbin/amd/amd/afs_ops.c
639
afs_retry(int rc, int term, void *closure)
usr.sbin/amd/amd/map.c
869
free_map_if_success(int rc, int term, void *closure)
usr.sbin/amd/amd/map.c
888
if (term) {
usr.sbin/amd/amd/map.c
889
plog(XLOG_ERROR, "unmount for %s got signal %d", mp->am_path, term);
usr.sbin/amd/amd/map.c
895
if (term == SIGTRAP) {
usr.sbin/amd/amd/nfsx_ops.c
270
nfsx_cont(int rc, int term, void *closure)
usr.sbin/amd/amd/nfsx_ops.c
284
if (rc || term) {
usr.sbin/amd/amd/nfsx_ops.c
285
if (term) {
usr.sbin/amd/amd/nfsx_ops.c
289
plog(XLOG_ERROR, "mount for %s got signal %d", n->n_mnt->mf_mount, term);
usr.sbin/amd/amd/sched.c
186
wakeup_task(int rc, int term, void *cl)
usr.sbin/btrace/bt_parse.y
135
%type <v.arg> expr term fterm variable factor func
usr.sbin/btrace/bt_parse.y
179
expr : expr OP_LAND term { $$ = ba_op(B_AT_OP_LAND, $1, $3); }
usr.sbin/btrace/bt_parse.y
180
| expr OP_LOR term { $$ = ba_op(B_AT_OP_LOR, $1, $3); }
usr.sbin/btrace/bt_parse.y
181
| term
usr.sbin/btrace/bt_parse.y
184
term : term OP_EQ fterm { $$ = ba_op(B_AT_OP_EQ, $1, $3); }
usr.sbin/btrace/bt_parse.y
185
| term OP_NE fterm { $$ = ba_op(B_AT_OP_NE, $1, $3); }
usr.sbin/btrace/bt_parse.y
186
| term OP_LE fterm { $$ = ba_op(B_AT_OP_LE, $1, $3); }
usr.sbin/btrace/bt_parse.y
187
| term OP_LT fterm { $$ = ba_op(B_AT_OP_LT, $1, $3); }
usr.sbin/btrace/bt_parse.y
188
| term OP_GE fterm { $$ = ba_op(B_AT_OP_GE, $1, $3); }
usr.sbin/btrace/bt_parse.y
189
| term OP_GT fterm { $$ = ba_op(B_AT_OP_GT, $1, $3); }
usr.sbin/btrace/bt_parse.y
190
| term '+' fterm { $$ = ba_op(B_AT_OP_PLUS, $1, $3); }
usr.sbin/btrace/bt_parse.y
191
| term '-' fterm { $$ = ba_op(B_AT_OP_MINUS, $1, $3); }
usr.sbin/btrace/bt_parse.y
192
| term '&' fterm { $$ = ba_op(B_AT_OP_BAND, $1, $3); }
usr.sbin/btrace/bt_parse.y
193
| term '^' fterm { $$ = ba_op(B_AT_OP_XOR, $1, $3); }
usr.sbin/btrace/bt_parse.y
194
| term '|' fterm { $$ = ba_op(B_AT_OP_BOR, $1, $3); }
usr.sbin/btrace/bt_parse.y
330
bc_new(struct bt_arg *term, enum bt_argtype op, struct bt_arg *ba)
usr.sbin/btrace/bt_parse.y
338
bf->bf_condition = bs_new(B_AC_TEST, ba_op(op, term, ba), NULL);
usr.sbin/ifstated/parse.y
119
%type <v.expression> expr term
usr.sbin/ifstated/parse.y
275
term : if_test {
usr.sbin/ifstated/parse.y
324
| term
usr.sbin/pppd/chat/chat.c
790
char *expect_strtok (char *s, char *term)
usr.sbin/pppd/chat/chat.c
826
if (strchr (term, *str) == (char *) 0) {
usr.sbin/pppd/main.c
132
static void term(int);
usr.sbin/pppd/main.c
318
SIGNAL(SIGINT, term); /* Interrupt */
usr.sbin/pppd/main.c
319
SIGNAL(SIGTERM, term); /* Terminate */