| /openbsd-src/usr.bin/tmux/ |
| H A D | tty-term.c | 1 /* $OpenBSD: tty-term.c,v 1.102 2024/08/26 13:02:15 nicm Exp $ */ 25 #include <term.h> 359 tty_term_apply(struct tty_term *term, const char *capabilities, int quiet) in tty_term_apply() argument 365 const char *errstr, *name = term->name; in tty_term_apply() 401 code = &term->codes[i]; in tty_term_apply() 435 tty_term_apply_overrides(struct tty_term *term) in tty_term_apply_overrides() argument 453 if (first != NULL && fnmatch(first, term->name, 0) == 0) in tty_term_apply_overrides() 454 tty_term_apply(term, s + offset, 0); in tty_term_apply_overrides() 459 log_debug("SIXEL flag is %d", !!(term->flags & TERM_SIXEL)); in tty_term_apply_overrides() 462 if (tty_term_has(term, TTYC_SETRGB in tty_term_apply_overrides() 524 struct tty_term *term; tty_term_create() local 645 tty_term_free(struct tty_term * term) tty_term_free() argument 744 tty_term_has(struct tty_term * term,enum tty_code_code code) tty_term_has() argument 750 tty_term_string(struct tty_term * term,enum tty_code_code code) tty_term_string() argument 760 tty_term_string_i(struct tty_term * term,enum tty_code_code code,int a) tty_term_string_i() argument 773 tty_term_string_ii(struct tty_term * term,enum tty_code_code code,int a,int b) tty_term_string_ii() argument 786 tty_term_string_iii(struct tty_term * term,enum tty_code_code code,int a,int b,int c) tty_term_string_iii() argument 800 tty_term_string_s(struct tty_term * term,enum tty_code_code code,const char * a) tty_term_string_s() argument 813 tty_term_string_ss(struct tty_term * term,enum tty_code_code code,const char * a,const char * b) tty_term_string_ss() argument 827 tty_term_number(struct tty_term * term,enum tty_code_code code) tty_term_number() argument 837 tty_term_flag(struct tty_term * term,enum tty_code_code code) tty_term_flag() argument 847 tty_term_describe(struct tty_term * term,enum tty_code_code code) tty_term_describe() argument [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 | 76 (tty->term->flags & TERM_DECSLRM) 141 (tty->term->flags & TERM_VT100LIKE)) { in tty_resize() 273 tty->term = tty_term_create(tty, c->term_name, c->term_caps, in tty_open() 275 if (tty->term == NULL) { in tty_open() 347 if (tty_term_has(tty->term, TTYC_KMOUS)) { in tty_start_tty() 351 if (tty_term_has(tty->term, TTYC_ENBP)) in tty_start_tty() 374 if (tty->term->flags & TERM_VT100LIKE) { in tty_send_requests() 375 if (~tty->term->flags & TTY_HAVEDA) in tty_send_requests() 400 if (tty->term->flags & TERM_VT100LIKE) { in tty_stop_tty() 434 tty_raw(tty, tty_term_string_ii(tty->term, TTYC_CS in tty_stop_tty() 819 struct tty_term *term = tty->term; tty_update_mode() local 2387 struct tty_term *term = tty->term; tty_cursor() local [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-src/gnu/usr.bin/perl/ |
| H A D | perly.y | 103 %type <opval> expr term subscripted scalar ary hsh arylen star amper sideff 653 OP *term = $formarg; variable 654 list = op_append_elem(OP_LIST, $THING, term); 861 | ASSIGNOP term 868 $$ = newARGDEFELEMOP(flags, $term, parser->sig_elems); 1086 | listexpr[list] PERLY_COMMA term variable 1088 OP* term = $term; 1089 $$ = op_append_elem(OP_LIST, $list, term); 1091 | term [all...] |
| /openbsd-src/gnu/llvm/llvm/utils/lit/lit/ |
| H A D | ProgressBar.py | 224 def __init__(self, term, header, useETA=True): argument 225 self.term = term 226 if not (self.term.CLEAR_EOL and self.term.UP and self.term.BOL): 229 self.BOL = self.term.BOL # BoL from col#79 231 if self.term.COLS: 232 self.width = self.term.COLS 233 if not self.term.XN: 234 self.BOL = self.term.UP + self.term.BOL 239 self.header = self.term.render(self.HEADER % header.center(self.width)) 269 bar = self.term.render(bar) [all …]
|
| /openbsd-src/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-src/usr.bin/mandoc/ |
| H A D | roff_escape.c | 83 char term; /* byte terminating the argument */ in roff_escape() local 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() [all …]
|
| /openbsd-src/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-src/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-src/usr.bin/awk/ |
| H A D | awkgram.y | 66 %type <p> pas pattern ppattern plist pplist patlist prarg term re 217 | ppattern term %prec CAT { $$ = op2(CAT, $1, $2); } 219 | term 251 | pattern term %prec CAT { $$ = op2(CAT, $1, $2); } 253 | term 299 print prarg '|' term { 302 | print prarg APPEND term { 305 | print prarg GT term { 360 term: 361 term '/' ASGNOP term { $$ = op2(DIVEQ, $1, $4); } [all …]
|
| /openbsd-src/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-src/gnu/usr.bin/perl/cpan/podlators/lib/Pod/Text/ |
| H A D | Termcap.pm | 35 my ($ospeed, $term, $termios); 50 my $term = Tgetent Term::Cap { TERM => undef, OSPEED => $ospeed }; 51 $bold = $term->Tputs('md'); 52 $undl = $term->Tputs('us'); 53 $norm = $term->Tputs('me'); 54 if (defined $$term{_co}) { 55 $width = $$term{_co};
|
| /openbsd-src/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() 1313 if (VALID_STRING(term->Strings[n])) { in dump_initializers() 1319 for (sp = term->Strings[n]; in dump_initializers() 1335 string_variable(ExtStrname(term, (int) n, strnames)), in dump_initializers() 1343 for_each_boolean(n, term) { in dump_initializers() 1344 switch ((int) (term->Booleans[n])) { in dump_initializers() 1362 n, ExtBoolname(term, (int) n, boolnames), str); in dump_initializers() 1368 for_each_number(n, term) { in dump_initializers() 1370 switch (term->Numbers[n]) { in dump_initializers() [all …]
|
| /openbsd-src/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-src/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-src/gnu/usr.bin/perl/cpan/CPAN/lib/ |
| H A D | CPAN.pm | 141 $term 272 if (! $term 274 $term->ReadLine eq "Term::ReadLine::Stub" 276 $term = Term::ReadLine->new('CPAN Monitor'); 278 if ($term->ReadLine eq "Term::ReadLine::Gnu") { 279 my $attribs = $term->Attribs; 288 unless ($term->can("AddHistory")) { 295 $META->readhist($term,$histfile); 299 $term->ornaments($_) if defined; 315 $try_detect_readline = $term->ReadLine eq "Term::ReadLine::Stub" if $term; [all …]
|
| /openbsd-src/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-src/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-src/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-src/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-src/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-src/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-src/gnu/usr.bin/perl/cpan/CPAN/t/ |
| H A D | 02nox.t | 14 $CPAN::term = $CPAN::term; # silence 15 undef $CPAN::term;
|