/openbsd/usr.bin/tmux/ |
H A D | tty-term.c | 473 if (tty_term_has(term, TTYC_CMG) && tty_term_has(term, TTYC_CLMG)) in tty_term_apply_overrides() 511 memset(term->acs, 0, sizeof term->acs); in tty_term_apply_overrides() 537 term = xcalloc(1, sizeof *term); in tty_term_create() 538 term->tty = tty; in tty_term_create() 540 term->codes = xcalloc(tty_term_ncodes(), sizeof *term->codes); in tty_term_create() 624 if ((tty_term_flag(term, TTYC_TC) || tty_term_has(term, TTYC_RGB)) && in tty_term_create() 637 return (term); in tty_term_create() 640 tty_term_free(term); in tty_term_create() 655 free(term->codes); in tty_term_free() 658 free(term->name); in tty_term_free() [all …]
|
H A D | cmd-show-messages.c | 55 struct tty_term *term; in cmd_show_messages_terminals() local 59 LIST_FOREACH(term, &tty_terms, entry) { in cmd_show_messages_terminals() 60 if (args_has(args, 't') && term != tc->tty.term) in cmd_show_messages_terminals() 67 term->name, term->tty->client->name, term->flags); in cmd_show_messages_terminals() 70 cmdq_print(item, "%s", tty_term_describe(term, i)); in cmd_show_messages_terminals()
|
H A D | tty.c | 77 (tty->term->flags & TERM_DECSLRM) 268 if (tty->term == NULL) { in tty_open() 368 if (~tty->term->flags & TTY_HAVEDA) in tty_send_requests() 475 tty_term_free(tty->term); in tty_close() 494 tty_term_apply_overrides(tty->term); in tty_update_features() 612 if ((tty->term->flags & TERM_NOAM) && in tty_putc() 638 if (tty->term->flags & TERM_NOAM) in tty_putc() 648 if ((tty->term->flags & TERM_NOAM) && in tty_putn() 819 struct tty_term *term = tty->term; in tty_update_mode() local 862 if (tty_term_has(tty->term, code)) in tty_emulate_repeat() [all …]
|
H A D | tty-features.c | 424 tty_apply_features(struct tty_term *term, int feat) in tty_apply_features() argument 435 if ((term->features & (1 << i)) || (~feat & (1 << i))) in tty_apply_features() 444 tty_term_apply(term, *capability, 1); in tty_apply_features() 448 term->flags |= tf->flags; in tty_apply_features() 450 if ((term->features | feat) == term->features) in tty_apply_features() 452 term->features |= feat; in tty_apply_features()
|
H A D | tty-acs.c | 220 if (tty_term_has(tty->term, TTYC_U8) && in tty_acs_needed() 221 tty_term_number(tty->term, TTYC_U8) == 0) in tty_acs_needed() 237 if (tty->term->acs[ch][0] == '\0') in tty_acs_get() 239 return (&tty->term->acs[ch][0]); in tty_acs_get()
|
/openbsd/gnu/usr.bin/perl/ |
H A D | perly.y | 1086 OP* term = $term; variable 1218 | term[lhs] PLUGIN_POW_OP[op] term[rhs] 1225 | term[lhs] PLUGIN_MUL_OP[op] term[rhs] 1229 | term[lhs] PLUGIN_ADD_OP[op] term[rhs] 1255 | term[lhs] PLUGIN_LOW_OP[op] term[rhs] 1261 | term[lhs] NCRELOP term[rhs] 1267 | term[lhs] PLUGIN_REL_OP[op] term[rhs] 1271 relopchain: term[lhs] CHRELOP term[rhs] 1279 | term[lhs] NCEQOP term[rhs] 1287 eqopchain: term[lhs] CHEQOP term[rhs] [all …]
|
/openbsd/gnu/llvm/llvm/utils/lit/lit/ |
H A D | ProgressBar.py | 225 self.term = term 226 if not (self.term.CLEAR_EOL and self.term.UP and self.term.BOL): 231 if self.term.COLS: 233 if not self.term.XN: 234 self.BOL = self.term.UP + self.term.BOL 269 bar = self.term.render(bar) 271 self.BOL + self.term.UP + self.term.CLEAR_EOL + 275 if not self.term.XN: 281 self.term.UP + self.term.CLEAR_EOL + 282 self.term.UP + self.term.CLEAR_EOL) [all …]
|
/openbsd/gnu/lib/libreadline/examples/ |
H A D | excallback.c | 92 struct termios term; variable 103 if( tcgetattr(STDIN_FILENO, &term) < 0 ) { in main() 107 old_lflag = term.c_lflag; in main() 108 old_vtime = term.c_cc[VTIME]; in main() 109 term.c_lflag &= ~ICANON; in main() 110 term.c_cc[VTIME] = 1; in main() 112 if( tcsetattr(STDIN_FILENO, TCSANOW, &term) < 0 ) { in main() 142 term.c_lflag = old_lflag; in process_line() 143 term.c_cc[VTIME] = old_vtime; in process_line() 144 if( tcsetattr(STDIN_FILENO, TCSANOW, &term) < 0 ) { in process_line()
|
/openbsd/usr.bin/mandoc/ |
H A D | roff_escape.c | 102 term = '\0'; in roff_escape() 195 term = '\b'; in roff_escape() 208 term = '\b'; in roff_escape() 212 term = '\b'; in roff_escape() 216 term = '\b'; in roff_escape() 220 term = '\b'; in roff_escape() 224 term = '\b'; in roff_escape() 228 term = '\b'; in roff_escape() 244 term = ']'; in roff_escape() 271 if ((term == '\b' || (term == '\0' && maxl == INT_MAX)) && in roff_escape() [all …]
|
/openbsd/lib/libc/gen/ |
H A D | readpassphrase.c | 45 struct termios term, oterm; in readpassphrase() local 81 memcpy(&term, &oterm, sizeof(term)); in readpassphrase() 83 term.c_lflag &= ~(ECHO | ECHONL); in readpassphrase() 84 if (term.c_cc[VSTATUS] != _POSIX_VDISABLE) in readpassphrase() 85 term.c_cc[VSTATUS] = _POSIX_VDISABLE; in readpassphrase() 86 (void)tcsetattr(input, TCSAFLUSH|TCSASOFT, &term); in readpassphrase() 88 memset(&term, 0, sizeof(term)); in readpassphrase() 89 term.c_lflag |= ECHO; in readpassphrase() 131 if (!(term.c_lflag & ECHO)) in readpassphrase() 135 if (memcmp(&term, &oterm, sizeof(term)) != 0) { in readpassphrase()
|
/openbsd/gnu/usr.bin/binutils/gdb/tui/ |
H A D | tui-command.c | 64 char *term; in tui_dispatch_ctrl_char() local 70 term = (char *) getenv ("TERM"); in tui_dispatch_ctrl_char() 71 for (i = 0; (term && term[i]); i++) in tui_dispatch_ctrl_char() 72 term[i] = toupper (term[i]); in tui_dispatch_ctrl_char() 73 if ((strcmp (term, "XTERM") == 0) && key_is_start_sequence (ch)) in tui_dispatch_ctrl_char()
|
/openbsd/usr.bin/awk/ |
H A D | awkgram.y | 219 | term 253 | term 305 | print prarg GT term { 360 term: 361 term '/' ASGNOP term { $$ = op2(DIVEQ, $1, $4); } 362 | term '+' term { $$ = op2(ADD, $1, $3); } 363 | term '-' term { $$ = op2(MINUS, $1, $3); } 364 | term '*' term { $$ = op2(MULT, $1, $3); } 365 | term '/' term { $$ = op2(DIVIDE, $1, $3); } 366 | term '%' term { $$ = op2(MOD, $1, $3); } [all …]
|
/openbsd/gnu/usr.bin/gcc/gcc/testsuite/gcc.dg/cpp/ |
H A D | lexstrng.c | 30 const char *term = "\"\\\"\\"; variable 59 if (term[0] != '"' || term[1] != '\\' || term[2] != '"' in main() 60 || term[3] != '\\' || term[4] != '\0') in main()
|
/openbsd/gnu/usr.bin/perl/cpan/podlators/lib/Pod/Text/ |
H A D | Termcap.pm | 34 my ($ospeed, $term, $termios); 49 my $term = Tgetent Term::Cap { TERM => undef, OSPEED => $ospeed }; 50 $bold = $term->Tputs('md'); 51 $undl = $term->Tputs('us'); 52 $norm = $term->Tputs('me'); 53 if (defined $$term{_co}) { 54 $width = $$term{_co};
|
/openbsd/usr.bin/infocmp/ |
H A D | infocmp.c | 1304 dump_initializers(TERMTYPE2 *term) in dump_initializers() argument 1312 for_each_string(n, term) { in dump_initializers() 1319 for (sp = term->Strings[n]; in dump_initializers() 1343 for_each_boolean(n, term) { in dump_initializers() 1368 for_each_number(n, term) { in dump_initializers() 1370 switch (term->Numbers[n]) { in dump_initializers() 1389 for_each_string(n, term) { in dump_initializers() 1428 dump_termtype(TERMTYPE2 *term) in dump_termtype() argument 1455 NUM_NUMBERS(term) - NUMCOUNT); in dump_termtype() 1457 NUM_STRINGS(term) - STRCOUNT); in dump_termtype() [all …]
|
/openbsd/lib/libmenu/ |
H A D | m_hook.c | 95 GEN_HOOK_SET_FUNCTION(menu, term) 107 GEN_HOOK_GET_FUNCTION(menu, term) 141 GEN_HOOK_SET_FUNCTION(item, term) 153 GEN_HOOK_GET_FUNCTION(item, term)
|
/openbsd/lib/libform/ |
H A D | frm_hook.c | 89 GEN_HOOK_SET_FUNCTION(field, term) 99 GEN_HOOK_GET_FUNCTION(field, term) 133 GEN_HOOK_SET_FUNCTION(form, term) 143 GEN_HOOK_GET_FUNCTION(form, term)
|
/openbsd/gnu/usr.bin/perl/cpan/CPAN/lib/ |
H A D | CPAN.pm | 141 $term 272 if (! $term 279 my $attribs = $term->Attribs; 315 $try_detect_readline = $term->ReadLine eq "Term::ReadLine::Stub" if $term; 452 if ($term and $term->can("ornaments")) { 477 $META->savehist if $CPAN::term && $CPAN::term->can("GetHistory"); 1369 my($self,$term,$histfile) = @_; 1371 $term->Attribs->{'MaxHistorySize'} = $histsize if (defined($term->Attribs->{'MaxHistorySize'})); 1377 $term->AddHistory($_); 1391 if ($CPAN::term) { [all …]
|
/openbsd/usr.bin/rdist/ |
H A D | gram.y | 49 %term ARROW 1 50 %term COLON 2 51 %term DCOLON 3 52 %term NAME 4 53 %term STRING 5 54 %term INSTALL 6 55 %term NOTIFY 7 56 %term EXCEPT 8 57 %term PATTERN 9 58 %term SPECIAL 10 [all …]
|
/openbsd/sys/dev/pci/drm/include/drm/ |
H A D | drm_fixed.h | 197 s64 sum = DRM_FIXED_ONE, term, y = x; in drm_fixp_exp() local 203 term = y; in drm_fixp_exp() 205 while (term >= tolerance) { in drm_fixp_exp() 206 sum = sum + term; in drm_fixp_exp() 208 term = drm_fixp_mul(term, div64_s64(y, count)); in drm_fixp_exp()
|
/openbsd/regress/sys/kern/pty/ |
H A D | ptyhog.c | 48 struct termios term; in main() local 57 if (tcgetattr(sfd, &term) == -1) in main() 59 cfmakeraw(&term); in main() 60 if (tcsetattr(sfd, TCSAFLUSH, &term) == -1) in main()
|
/openbsd/lib/libskey/ |
H A D | skeysubr.c | 357 static struct termios term; in skey_echo() local 362 (void) tcgetattr(fileno(stdin), &term); in skey_echo() 363 if ((echo = (term.c_lflag & ECHO))) { in skey_echo() 364 term.c_lflag &= ~ECHO; in skey_echo() 365 (void) tcsetattr(fileno(stdin), TCSAFLUSH|TCSASOFT, &term); in skey_echo() 369 term.c_lflag |= ECHO; in skey_echo() 370 (void) tcsetattr(fileno(stdin), TCSAFLUSH|TCSASOFT, &term); in skey_echo()
|
/openbsd/lib/libc/termios/ |
H A D | tcflow.c | 39 struct termios term; in tcflow() local 49 if (tcgetattr(fd, &term) == -1) in tcflow() 51 c = term.c_cc[action == TCIOFF ? VSTOP : VSTART]; in tcflow()
|
/openbsd/games/banner/ |
H A D | banner.c | 1111 int debug, i, j, linen, max, nchars, pc, term, trace, x, y; variable 1212 term = 0; in main() 1215 while (!term) { in main() 1222 printf("pc=%d, term=%d, max=%d, linen=%d, x=%d\n",pc,term,max,linen,x); in main() 1224 if (x>192) term++; in main()
|
/openbsd/gnu/usr.bin/perl/cpan/CPAN/t/ |
H A D | 02nox.t | 14 $CPAN::term = $CPAN::term; # silence 15 undef $CPAN::term;
|