• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /macosx-10.9.5/ncurses-42/ncurses/progs/

Lines Matching +defs:match +defs:type

227 /* Prompt the user for a terminal type. */
243 (void) fprintf(stderr, "Terminal type? [%s] ", dflt);
245 (void) fprintf(stderr, "Terminal type? ");
281 const char *porttype; /* Port type, or "" for any. */
282 const char *type; /* Terminal type to select. */
376 * [port-type][test baudrate]:terminal-type
405 mapp->type = mapp->porttype;
452 if (arg == (char *) 0) /* Non-optional type. */
455 mapp->type = arg;
477 (void) printf("type: %s\n", mapp->type);
495 * Return the type of terminal to use for a port of type 'type', as specified
497 * 'type'.
500 mapped(const char *type)
503 int match;
506 if (mapp->porttype == 0 || !strcmp(mapp->porttype, type)) {
509 match = TRUE;
512 match = (ospeed == mapp->speed);
515 match = (ospeed >= mapp->speed);
518 match = (ospeed > mapp->speed);
521 match = (ospeed <= mapp->speed);
524 match = (ospeed < mapp->speed);
527 match = FALSE;
529 if (match)
530 return (mapp->type);
532 /* No match found; return given type. */
533 return (type);
573 * there's an /etc/ttys to look up device-to-type mappings in.
632 * ttype now contains a pointer to the type of the terminal.
645 (void) fprintf(stderr, "%s: unknown terminal type %s\n",
650 "%s: can't initialize terminal type %s (error %d)\n",
1140 ," -m mapping map identifier to type"
1177 case 'a': /* OBSOLETE: map identifier to type */
1180 case 'd': /* OBSOLETE: map identifier to type */
1195 case 'm': /* map identifier to type */
1200 case 'p': /* OBSOLETE: map identifier to type */
1290 ttype = _nc_first_name(cur_term->type.term_names);
1296 (void) fprintf(stderr, "Terminal type is %s.\n", ttype);