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
357
static struct termios term;
lib/libskey/skeysubr.c
362
(void) tcgetattr(fileno(stdin), &term);
lib/libskey/skeysubr.c
363
if ((echo = (term.c_lflag & ECHO))) {
lib/libskey/skeysubr.c
364
term.c_lflag &= ~ECHO;
lib/libskey/skeysubr.c
365
(void) tcsetattr(fileno(stdin), TCSAFLUSH|TCSASOFT, &term);
lib/libskey/skeysubr.c
369
term.c_lflag |= ECHO;
lib/libskey/skeysubr.c
370
(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
2695
const char *term, struct termios *tiop, int in_fd, struct sshbuf *cmd,
usr.bin/ssh/clientloop.c
2717
if ((r = sshpkt_put_cstring(ssh, term != NULL ? term : ""))
usr.bin/ssh/misc.c
2631
opt_match(const char **opts, const char *term)
usr.bin/ssh/misc.c
2633
if (strncasecmp((*opts), term, strlen(term)) == 0 &&
usr.bin/ssh/misc.c
2634
(*opts)[strlen(term)] == '=') {
usr.bin/ssh/misc.c
2635
*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
1556
if ((r = sshpkt_get_cstring(ssh, &s->term, NULL)) != 0 ||
usr.bin/ssh/session.c
1563
if (strcmp(s->term, "") == 0) {
usr.bin/ssh/session.c
1564
free(s->term);
usr.bin/ssh/session.c
1565
s->term = NULL;
usr.bin/ssh/session.c
1571
free(s->term);
usr.bin/ssh/session.c
1572
s->term = NULL;
usr.bin/ssh/session.c
2082
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
2145
const char *display, *term;
usr.bin/ssh/ssh.c
2170
if ((term = lookup_env_in_list("TERM", options.setenv,
usr.bin/ssh/ssh.c
2171
options.num_setenv)) == NULL || *term == '\0')
usr.bin/ssh/ssh.c
2172
term = getenv("TERM");
usr.bin/ssh/ssh.c
2174
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/screen-redraw.c
863
tty_term_has(tty->term, TTYC_BIDI))
usr.bin/tmux/server-fn.c
175
tty_raw(&c->tty, tty_term_string(c->tty.term, TTYC_SMCUP));
usr.bin/tmux/server-fn.c
176
tty_raw(&c->tty, tty_term_string(c->tty.term, TTYC_CLEAR));
usr.bin/tmux/server-fn.c
177
tty_raw(&c->tty, tty_term_string(c->tty.term, TTYC_E3));
usr.bin/tmux/tmux.h
1657
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
65
if (px + nx >= tty->sx && tty_term_has(tty->term, TTYC_EL)) {
usr.bin/tmux/tty-draw.c
72
if (px == 0 && tty_term_has(tty->term, TTYC_EL1)) {
usr.bin/tmux/tty-draw.c
79
if (tty_term_has(tty->term, TTYC_ECH)) {
usr.bin/tmux/tty-features.c
424
tty_apply_features(struct tty_term *term, int feat)
usr.bin/tmux/tty-features.c
435
if ((term->features & (1 << i)) || (~feat & (1 << i)))
usr.bin/tmux/tty-features.c
444
tty_term_apply(term, *capability, 1);
usr.bin/tmux/tty-features.c
448
term->flags |= tf->flags;
usr.bin/tmux/tty-features.c
450
if ((term->features | feat) == term->features)
usr.bin/tmux/tty-features.c
452
term->features |= feat;
usr.bin/tmux/tty-keys.c
527
s = tty_term_string(tty->term, tdkc->code);
usr.bin/tmux/tty-term.c
359
tty_term_apply(struct tty_term *term, const char *capabilities, int quiet)
usr.bin/tmux/tty-term.c
365
const char *errstr, *name = term->name;
usr.bin/tmux/tty-term.c
401
code = &term->codes[i];
usr.bin/tmux/tty-term.c
435
tty_term_apply_overrides(struct tty_term *term)
usr.bin/tmux/tty-term.c
453
if (first != NULL && fnmatch(first, term->name, 0) == 0)
usr.bin/tmux/tty-term.c
454
tty_term_apply(term, s + offset, 0);
usr.bin/tmux/tty-term.c
459
log_debug("SIXEL flag is %d", !!(term->flags & TERM_SIXEL));
usr.bin/tmux/tty-term.c
462
if (tty_term_has(term, TTYC_SETRGBF) &&
usr.bin/tmux/tty-term.c
463
tty_term_has(term, TTYC_SETRGBB))
usr.bin/tmux/tty-term.c
464
term->flags |= TERM_RGBCOLOURS;
usr.bin/tmux/tty-term.c
466
term->flags &= ~TERM_RGBCOLOURS;
usr.bin/tmux/tty-term.c
467
log_debug("RGBCOLOURS flag is %d", !!(term->flags & TERM_RGBCOLOURS));
usr.bin/tmux/tty-term.c
473
if (tty_term_has(term, TTYC_CMG) && tty_term_has(term, TTYC_CLMG))
usr.bin/tmux/tty-term.c
474
term->flags |= TERM_DECSLRM;
usr.bin/tmux/tty-term.c
476
term->flags &= ~TERM_DECSLRM;
usr.bin/tmux/tty-term.c
477
log_debug("DECSLRM flag is %d", !!(term->flags & TERM_DECSLRM));
usr.bin/tmux/tty-term.c
483
if (tty_term_has(term, TTYC_RECT))
usr.bin/tmux/tty-term.c
484
term->flags |= TERM_DECFRA;
usr.bin/tmux/tty-term.c
486
term->flags &= ~TERM_DECFRA;
usr.bin/tmux/tty-term.c
487
log_debug("DECFRA flag is %d", !!(term->flags & TERM_DECFRA));
usr.bin/tmux/tty-term.c
504
if (!tty_term_flag(term, TTYC_AM))
usr.bin/tmux/tty-term.c
505
term->flags |= TERM_NOAM;
usr.bin/tmux/tty-term.c
507
term->flags &= ~TERM_NOAM;
usr.bin/tmux/tty-term.c
508
log_debug("NOAM flag is %d", !!(term->flags & TERM_NOAM));
usr.bin/tmux/tty-term.c
511
memset(term->acs, 0, sizeof term->acs);
usr.bin/tmux/tty-term.c
512
if (tty_term_has(term, TTYC_ACSC))
usr.bin/tmux/tty-term.c
513
acs = tty_term_string(term, TTYC_ACSC);
usr.bin/tmux/tty-term.c
517
term->acs[(u_char) acs[0]][0] = acs[1];
usr.bin/tmux/tty-term.c
524
struct tty_term *term;
usr.bin/tmux/tty-term.c
539
term = xcalloc(1, sizeof *term);
usr.bin/tmux/tty-term.c
540
term->tty = tty;
usr.bin/tmux/tty-term.c
541
term->name = xstrdup(name);
usr.bin/tmux/tty-term.c
542
term->codes = xcalloc(tty_term_ncodes(), sizeof *term->codes);
usr.bin/tmux/tty-term.c
543
LIST_INSERT_HEAD(&tty_terms, term, entry);
usr.bin/tmux/tty-term.c
559
code = &term->codes[j];
usr.bin/tmux/tty-term.c
594
if (first != NULL && fnmatch(first, term->name, 0) == 0)
usr.bin/tmux/tty-term.c
611
tty_term_apply_overrides(term);
usr.bin/tmux/tty-term.c
614
if (!tty_term_has(term, TTYC_CLEAR)) {
usr.bin/tmux/tty-term.c
618
if (!tty_term_has(term, TTYC_CUP)) {
usr.bin/tmux/tty-term.c
635
s = tty_term_string(term, TTYC_CLEAR);
usr.bin/tmux/tty-term.c
636
if (tty_term_flag(term, TTYC_XT) || strncmp(s, "\033[", 2) == 0) {
usr.bin/tmux/tty-term.c
637
term->flags |= TERM_VT100LIKE;
usr.bin/tmux/tty-term.c
642
if ((tty_term_flag(term, TTYC_TC) || tty_term_has(term, TTYC_RGB)) &&
usr.bin/tmux/tty-term.c
643
(!tty_term_has(term, TTYC_SETRGBF) ||
usr.bin/tmux/tty-term.c
644
!tty_term_has(term, TTYC_SETRGBB)))
usr.bin/tmux/tty-term.c
648
if (tty_apply_features(term, *feat))
usr.bin/tmux/tty-term.c
649
tty_term_apply_overrides(term);
usr.bin/tmux/tty-term.c
653
log_debug("%s%s", name, tty_term_describe(term, i));
usr.bin/tmux/tty-term.c
655
return (term);
usr.bin/tmux/tty-term.c
658
tty_term_free(term);
usr.bin/tmux/tty-term.c
663
tty_term_free(struct tty_term *term)
usr.bin/tmux/tty-term.c
667
log_debug("removing term %s", term->name);
usr.bin/tmux/tty-term.c
670
if (term->codes[i].type == TTYCODE_STRING)
usr.bin/tmux/tty-term.c
671
free(term->codes[i].value.string);
usr.bin/tmux/tty-term.c
673
free(term->codes);
usr.bin/tmux/tty-term.c
675
LIST_REMOVE(term, entry);
usr.bin/tmux/tty-term.c
676
free(term->name);
usr.bin/tmux/tty-term.c
677
free(term);
usr.bin/tmux/tty-term.c
762
tty_term_has(struct tty_term *term, enum tty_code_code code)
usr.bin/tmux/tty-term.c
764
return (term->codes[code].type != TTYCODE_NONE);
usr.bin/tmux/tty-term.c
768
tty_term_string(struct tty_term *term, enum tty_code_code code)
usr.bin/tmux/tty-term.c
770
if (!tty_term_has(term, code))
usr.bin/tmux/tty-term.c
772
if (term->codes[code].type != TTYCODE_STRING)
usr.bin/tmux/tty-term.c
774
return (term->codes[code].value.string);
usr.bin/tmux/tty-term.c
778
tty_term_string_i(struct tty_term *term, enum tty_code_code code, int a)
usr.bin/tmux/tty-term.c
780
const char *x = tty_term_string(term, code), *s;
usr.bin/tmux/tty-term.c
791
tty_term_string_ii(struct tty_term *term, enum tty_code_code code, int a, int b)
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_iii(struct tty_term *term, enum tty_code_code code, int a,
usr.bin/tmux/tty-term.c
807
const char *x = tty_term_string(term, code), *s;
usr.bin/tmux/tty-term.c
818
tty_term_string_s(struct tty_term *term, enum tty_code_code code, const char *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_ss(struct tty_term *term, enum tty_code_code code,
usr.bin/tmux/tty-term.c
834
const char *x = tty_term_string(term, code), *s;
usr.bin/tmux/tty-term.c
845
tty_term_number(struct tty_term *term, enum tty_code_code code)
usr.bin/tmux/tty-term.c
847
if (!tty_term_has(term, code))
usr.bin/tmux/tty-term.c
849
if (term->codes[code].type != TTYCODE_NUMBER)
usr.bin/tmux/tty-term.c
851
return (term->codes[code].value.number);
usr.bin/tmux/tty-term.c
855
tty_term_flag(struct tty_term *term, enum tty_code_code code)
usr.bin/tmux/tty-term.c
857
if (!tty_term_has(term, code))
usr.bin/tmux/tty-term.c
859
if (term->codes[code].type != TTYCODE_FLAG)
usr.bin/tmux/tty-term.c
861
return (term->codes[code].value.flag);
usr.bin/tmux/tty-term.c
865
tty_term_describe(struct tty_term *term, enum tty_code_code code)
usr.bin/tmux/tty-term.c
870
switch (term->codes[code].type) {
usr.bin/tmux/tty-term.c
876
strnvis(out, term->codes[code].value.string, sizeof out,
usr.bin/tmux/tty-term.c
885
term->codes[code].value.number);
usr.bin/tmux/tty-term.c
890
term->codes[code].value.flag ? "true" : "false");
usr.bin/tmux/tty.c
1068
if (tty_term_flag(tty->term, TTYC_BCE))
usr.bin/tmux/tty.c
1173
if (px + nx >= tty->sx && tty_term_has(tty->term, TTYC_EL)) {
usr.bin/tmux/tty.c
1180
if (px == 0 && tty_term_has(tty->term, TTYC_EL1)) {
usr.bin/tmux/tty.c
1187
if (tty_term_has(tty->term, TTYC_ECH)) {
usr.bin/tmux/tty.c
1305
tty_term_has(tty->term, TTYC_ED)) {
usr.bin/tmux/tty.c
1316
if ((tty->term->flags & TERM_DECFRA) && !COLOUR_DEFAULT(bg)) {
usr.bin/tmux/tty.c
1327
tty_term_has(tty->term, TTYC_CSR) &&
usr.bin/tmux/tty.c
1328
tty_term_has(tty->term, TTYC_INDN)) {
usr.bin/tmux/tty.c
1341
tty_term_has(tty->term, TTYC_CSR) &&
usr.bin/tmux/tty.c
1343
tty_term_has(tty->term, TTYC_INDN)) {
usr.bin/tmux/tty.c
136
(tty->term->flags & TERM_VT100LIKE)) {
usr.bin/tmux/tty.c
1474
if (tty_term_has(tty->term, TTYC_SYNC)) {
usr.bin/tmux/tty.c
1489
if (tty_term_has(tty->term, TTYC_SYNC)) {
usr.bin/tmux/tty.c
1498
if (c->session == NULL || c->tty.term == NULL)
usr.bin/tmux/tty.c
1546
(!tty_term_has(tty->term, TTYC_ICH) &&
usr.bin/tmux/tty.c
1547
!tty_term_has(tty->term, TTYC_ICH1)) ||
usr.bin/tmux/tty.c
1569
(!tty_term_has(tty->term, TTYC_DCH) &&
usr.bin/tmux/tty.c
1570
!tty_term_has(tty->term, TTYC_DCH1)) ||
usr.bin/tmux/tty.c
1601
!tty_term_has(tty->term, TTYC_CSR) ||
usr.bin/tmux/tty.c
1602
!tty_term_has(tty->term, TTYC_IL1) ||
usr.bin/tmux/tty.c
1629
!tty_term_has(tty->term, TTYC_CSR) ||
usr.bin/tmux/tty.c
1630
!tty_term_has(tty->term, TTYC_DL1) ||
usr.bin/tmux/tty.c
1689
!tty_term_has(tty->term, TTYC_CSR) ||
usr.bin/tmux/tty.c
1690
(!tty_term_has(tty->term, TTYC_RI) &&
usr.bin/tmux/tty.c
1691
!tty_term_has(tty->term, TTYC_RIN)) ||
usr.bin/tmux/tty.c
1706
if (tty_term_has(tty->term, TTYC_RI))
usr.bin/tmux/tty.c
1723
!tty_term_has(tty->term, TTYC_CSR) ||
usr.bin/tmux/tty.c
1764
!tty_term_has(tty->term, TTYC_CSR) ||
usr.bin/tmux/tty.c
1778
if (ctx->num == 1 || !tty_term_has(tty->term, TTYC_INDN)) {
usr.bin/tmux/tty.c
1803
!tty_term_has(tty->term, TTYC_CSR) ||
usr.bin/tmux/tty.c
1804
(!tty_term_has(tty->term, TTYC_RI) &&
usr.bin/tmux/tty.c
1805
!tty_term_has(tty->term, TTYC_RIN)) ||
usr.bin/tmux/tty.c
1820
if (tty_term_has(tty->term, TTYC_RIN))
usr.bin/tmux/tty.c
1983
(tty->term->flags & TERM_NOAM) ||
usr.bin/tmux/tty.c
2029
if (!tty_term_has(tty->term, TTYC_MS))
usr.bin/tmux/tty.c
2077
if ((tty->term->flags & TERM_NOAM) &&
usr.bin/tmux/tty.c
2165
if (!tty_term_has(tty->term, TTYC_CSR))
usr.bin/tmux/tty.c
2234
(tty->term->flags & TERM_NOAM) ||
usr.bin/tmux/tty.c
2255
struct tty_term *term = tty->term;
usr.bin/tmux/tty.c
2285
if (cx == 0 && cy == 0 && tty_term_has(term, TTYC_HOME)) {
usr.bin/tmux/tty.c
2311
if (cx == thisx - 1 && tty_term_has(term, TTYC_CUB1)) {
usr.bin/tmux/tty.c
2317
if (cx == thisx + 1 && tty_term_has(term, TTYC_CUF1)) {
usr.bin/tmux/tty.c
2329
if ((u_int) abs(change) > cx && tty_term_has(term, TTYC_HPA)) {
usr.bin/tmux/tty.c
2333
tty_term_has(term, TTYC_CUB) &&
usr.bin/tmux/tty.c
2335
if (change == 2 && tty_term_has(term, TTYC_CUB1)) {
usr.bin/tmux/tty.c
2343
tty_term_has(term, TTYC_CUF) &&
usr.bin/tmux/tty.c
2355
cy == thisy - 1 && tty_term_has(term, TTYC_CUU1)) {
usr.bin/tmux/tty.c
2362
cy == thisy + 1 && tty_term_has(term, TTYC_CUD1)) {
usr.bin/tmux/tty.c
2377
if (tty_term_has(term, TTYC_VPA)) {
usr.bin/tmux/tty.c
2381
} else if (change > 0 && tty_term_has(term, TTYC_CUU)) {
usr.bin/tmux/tty.c
2384
} else if (change < 0 && tty_term_has(term, TTYC_CUD)) {
usr.bin/tmux/tty.c
2448
if (!tty_term_has(tty->term, TTYC_SETAB)) {
usr.bin/tmux/tty.c
2502
if (tty_term_has(tty->term, TTYC_REV))
usr.bin/tmux/tty.c
2504
else if (tty_term_has(tty->term, TTYC_SMSO))
usr.bin/tmux/tty.c
2542
if (!tty_term_flag(tty->term, TTYC_AX))
usr.bin/tmux/tty.c
2589
!tty_term_has(tty->term, TTYC_NOBR))
usr.bin/tmux/tty.c
2598
if (tty->term->flags & TERM_RGBCOLOURS)
usr.bin/tmux/tty.c
2605
if (tty->term->flags & TERM_256COLOURS)
usr.bin/tmux/tty.c
2608
colours = tty_term_number(tty->term, TTYC_COLORS);
usr.bin/tmux/tty.c
2658
if (tty->term->flags & TERM_RGBCOLOURS)
usr.bin/tmux/tty.c
2665
if (tty->term->flags & TERM_256COLOURS)
usr.bin/tmux/tty.c
2668
colours = tty_term_number(tty->term, TTYC_COLORS);
usr.bin/tmux/tty.c
268
tty->term = tty_term_create(tty, c->term_name, c->term_caps,
usr.bin/tmux/tty.c
270
if (tty->term == NULL) {
usr.bin/tmux/tty.c
2706
if (!tty_term_has(tty->term, TTYC_SETULC1)) {
usr.bin/tmux/tty.c
2739
if (tty->term->flags & TERM_256COLOURS) {
usr.bin/tmux/tty.c
2771
if (tty->term->flags & TERM_256COLOURS) {
usr.bin/tmux/tty.c
2823
if (tty_term_has(tty->term, TTYC_SETULC))
usr.bin/tmux/tty.c
2825
else if (tty_term_has(tty->term, TTYC_SETAL) &&
usr.bin/tmux/tty.c
2826
tty_term_has(tty->term, TTYC_RGB))
usr.bin/tmux/tty.c
2840
if (*type == '3' && tty_term_has(tty->term, TTYC_SETAF))
usr.bin/tmux/tty.c
2842
else if (tty_term_has(tty->term, TTYC_SETAB))
usr.bin/tmux/tty.c
2849
if (*type == '3' && tty_term_has(tty->term, TTYC_SETRGBF))
usr.bin/tmux/tty.c
2851
else if (tty_term_has(tty->term, TTYC_SETRGBB))
usr.bin/tmux/tty.c
357
if (tty_term_has(tty->term, TTYC_KMOUS)) {
usr.bin/tmux/tty.c
361
if (tty_term_has(tty->term, TTYC_ENBP))
usr.bin/tmux/tty.c
364
if (tty->term->flags & TERM_VT100LIKE) {
usr.bin/tmux/tty.c
388
if (tty->term->flags & TERM_VT100LIKE) {
usr.bin/tmux/tty.c
421
if (tty->term->flags & TERM_VT100LIKE) {
usr.bin/tmux/tty.c
457
tty_raw(tty, tty_term_string_ii(tty->term, TTYC_CSR, 0, ws.ws_row - 1));
usr.bin/tmux/tty.c
459
tty_raw(tty, tty_term_string(tty->term, TTYC_RMACS));
usr.bin/tmux/tty.c
460
tty_raw(tty, tty_term_string(tty->term, TTYC_SGR0));
usr.bin/tmux/tty.c
461
tty_raw(tty, tty_term_string(tty->term, TTYC_RMKX));
usr.bin/tmux/tty.c
462
tty_raw(tty, tty_term_string(tty->term, TTYC_CLEAR));
usr.bin/tmux/tty.c
464
if (tty_term_has(tty->term, TTYC_SE))
usr.bin/tmux/tty.c
465
tty_raw(tty, tty_term_string(tty->term, TTYC_SE));
usr.bin/tmux/tty.c
466
else if (tty_term_has(tty->term, TTYC_SS))
usr.bin/tmux/tty.c
467
tty_raw(tty, tty_term_string_i(tty->term, TTYC_SS, 0));
usr.bin/tmux/tty.c
470
tty_raw(tty, tty_term_string(tty->term, TTYC_CR));
usr.bin/tmux/tty.c
472
tty_raw(tty, tty_term_string(tty->term, TTYC_CNORM));
usr.bin/tmux/tty.c
473
if (tty_term_has(tty->term, TTYC_KMOUS)) {
usr.bin/tmux/tty.c
477
if (tty_term_has(tty->term, TTYC_DSBP))
usr.bin/tmux/tty.c
478
tty_raw(tty, tty_term_string(tty->term, TTYC_DSBP));
usr.bin/tmux/tty.c
480
if (tty->term->flags & TERM_VT100LIKE)
usr.bin/tmux/tty.c
482
tty_raw(tty, tty_term_string(tty->term, TTYC_DSFCS));
usr.bin/tmux/tty.c
483
tty_raw(tty, tty_term_string(tty->term, TTYC_DSEKS));
usr.bin/tmux/tty.c
486
tty_raw(tty, tty_term_string(tty->term, TTYC_DSMG));
usr.bin/tmux/tty.c
487
tty_raw(tty, tty_term_string(tty->term, TTYC_RMCUP));
usr.bin/tmux/tty.c
489
if (tty->term->flags & TERM_VT100LIKE)
usr.bin/tmux/tty.c
508
tty_term_free(tty->term);
usr.bin/tmux/tty.c
528
if (tty_apply_features(tty->term, c->term_features))
usr.bin/tmux/tty.c
529
tty_term_apply_overrides(tty->term);
usr.bin/tmux/tty.c
534
tty_puts(tty, tty_term_string(tty->term, TTYC_ENEKS));
usr.bin/tmux/tty.c
536
tty_puts(tty, tty_term_string(tty->term, TTYC_ENFCS));
usr.bin/tmux/tty.c
537
if (tty->term->flags & TERM_VT100LIKE)
usr.bin/tmux/tty.c
573
tty_puts(tty, tty_term_string(tty->term, code));
usr.bin/tmux/tty.c
581
tty_puts(tty, tty_term_string_i(tty->term, code, a));
usr.bin/tmux/tty.c
589
tty_puts(tty, tty_term_string_ii(tty->term, code, a, b));
usr.bin/tmux/tty.c
597
tty_puts(tty, tty_term_string_iii(tty->term, code, a, b, c));
usr.bin/tmux/tty.c
604
tty_puts(tty, tty_term_string_s(tty->term, code, a));
usr.bin/tmux/tty.c
612
tty_puts(tty, tty_term_string_ss(tty->term, code, a, b));
usr.bin/tmux/tty.c
648
if ((tty->term->flags & TERM_NOAM) &&
usr.bin/tmux/tty.c
674
if (tty->term->flags & TERM_NOAM)
usr.bin/tmux/tty.c
684
if ((tty->term->flags & TERM_NOAM) &&
usr.bin/tmux/tty.c
705
if (tty_term_has(tty->term, TTYC_SITM)) {
usr.bin/tmux/tty.c
71
(tty->term->flags & TERM_DECSLRM)
usr.bin/tmux/tty.c
718
if (!tty_term_has(tty->term, TTYC_TSL) ||
usr.bin/tmux/tty.c
719
!tty_term_has(tty->term, TTYC_FSL))
usr.bin/tmux/tty.c
730
if (!tty_term_has(tty->term, TTYC_SWD) ||
usr.bin/tmux/tty.c
731
!tty_term_has(tty->term, TTYC_FSL))
usr.bin/tmux/tty.c
812
if (tty_term_has(tty->term, TTYC_SE))
usr.bin/tmux/tty.c
821
if (tty_term_has(tty->term, TTYC_SS)) {
usr.bin/tmux/tty.c
830
if (tty_term_has(tty->term, TTYC_SS)) {
usr.bin/tmux/tty.c
839
if (tty_term_has(tty->term, TTYC_SS)) {
usr.bin/tmux/tty.c
855
struct tty_term *term = tty->term;
usr.bin/tmux/tty.c
875
if ((changed & ALL_MOUSE_MODES) && tty_term_has(term, TTYC_KMOUS)) {
usr.bin/tmux/tty.c
898
if (tty_term_has(tty->term, code))
usr.bin/tmux/window.c
1306
window_pane_search(struct window_pane *wp, const char *term, int regex,
usr.bin/tmux/window.c
1319
xasprintf(&new, "*%s*", term);
usr.bin/tmux/window.c
1323
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 */