Lines Matching defs:term
437 * Propagate terminal settings from the external term to the new one.
464 struct termios term;
465 if (tcgetattr(fd, &term) < 0) {
471 save_termios = term;
475 term.c_iflag &= ~(ISTRIP|IXON|IXANY);
477 term.c_iflag &= ~(INLCR|ICRNL|IGNCR|IUCLC);
479 term.c_oflag &= ~OPOST;
481 term.c_lflag &= ~(ICANON|ISIG|ECHO|IEXTEN);
483 term.c_cc[VMIN] = 1; /* byte-at-a-time */
484 term.c_cc[VTIME] = 0;
486 if (tcsetattr(STDIN_FILENO, TCSAFLUSH, &term)) {
493 * client-side ~<EOF>. But we have obliterated VEOF in term,
1187 char *term = getenv("TERM");
1190 if (term != NULL)
1208 if (term != NULL) {
1209 if ((estr = add_env("TERM", term)) == NULL)