Lines Matching defs:cur_term

73 TERMINAL		_first_term, *cur_term = &_first_term;
377 if ((cur_term = (TERMINAL *)
393 free((char *)cur_term);
409 cur_term = &_first_term;
429 (void) strncpy(cur_term->_termname, term, 14);
431 cur_term->_termname[14] = '\0';
432 cur_term->_bools = cur_bools;
433 cur_term->_nums = cur_nums;
434 cur_term->_strs = cur_strs;
435 cur_term->_strtab = strtab;
436 cur_term->sgr_mode = cur_term->sgr_faked = A_NORMAL;
441 cur_term->Filedes = (short)filenum;
442 _blast_keys(cur_term);
443 cur_term->_iwait = cur_term->fl_typeahdok = cur_term->_chars_on_queue =
444 cur_term->_fl_rawmode = cur_term->_ungotten = 0;
445 cur_term->_cursorstate = 1;
446 cur_term->_delay = cur_term->_inputfd = cur_term->_check_fd = -1;
447 (void) memset((char *)cur_term->_regs, 0, 26 * sizeof (short));
673 ioctl(cur_term -> Filedes, TIOCLGET, &n);
678 (void) memcpy(&cur_term->_b1, &cur_bools->_auto_left_margin,
679 (char *)&cur_term->_c1 - (char *)&cur_term->_b1);
680 (void) memcpy((char *)&cur_term->_c1, (char *)&cur_nums->_columns,
681 (char *)&cur_term->_Vr2_Astrs._s1 - (char *)&cur_term->_c1);
682 (void) memcpy((char *)&cur_term->_Vr2_Astrs._s1,
684 (char *)&cur_term->Filedes - (char *)&cur_term->_Vr2_Astrs._s1);
687 on_sequences = cur_term->turn_on_seq;
704 cur_term->bit_vector |= bit_attributes[n];
715 char **off_sequences = cur_term->turn_off_seq;
730 cur_term->sgr_faked |=
735 cur_term->sgr_faked |=
741 cur_term->check_turn_off = A_STANDOUT | A_UNDERLINE |
751 cur_term->check_turn_off &= ~bit_attributes[n];
755 cur_term->cursor_seq[0] = cursor_invisible;
756 cur_term->cursor_seq[1] = cursor_normal;
757 cur_term->cursor_seq[2] = cursor_visible;
758 cur_term->_pairs_tbl = (_Color_pair *) NULL;
759 cur_term->_color_tbl = (_Color *) NULL;
791 (void) ioctl(cur_term -> Filedes, TCSETAW, &PROGTTY);
793 (void) ioctl(cur_term -> Filedes, TCSETSW, &PROGTTYS);
797 (void) ioctl(cur_term -> Filedes, TIOCSETN, &PROGTTY);
801 ioctl(cur_term -> Filedes, TIOCLGET, &cur_term -> oldlmode);
802 cur_term -> newlmode = cur_term -> oldlmode & ~LTILDE;
803 if (cur_term -> newlmode != cur_term -> oldlmode)
804 ioctl(cur_term -> Filedes, TIOCLSET, &cur_term -> newlmode);
807 if (cur_term -> old.st_termt == 0)
808 ioctl(cur_term->Filedes, DIOCGETT, &cur_term -> old);
809 cur_term -> new = cur_term -> old;
810 cur_term -> new.st_termt = 0;
811 cur_term -> new.st_flgs |= TM_SET;
812 ioctl(cur_term->Filedes, DIOCSETT, &cur_term -> new);
822 ioctl(cur_term -> Filedes, TCGETS, &SHELLTTYS)) < 0) {
825 (void) ioctl(cur_term -> Filedes, TCGETA, &SHELLTTY);
834 (void) ioctl(cur_term -> Filedes, TIOCGETP, &SHELLTTY);