Lines Matching refs:modes

17  *  TSET -- set terminal modes
263 #define curerase modes.c_cc[VERASE]
264 #define curkill modes.c_cc[VKILL]
265 #define curintr modes.c_cc[VINTR]
432 struct termios modes;
472 if ((istermios = ioctl(FILEDES, TCGETS, (char *)&modes)) < 0) {
478 modes.c_lflag = oldmodes.c_lflag = mode.c_lflag;
479 modes.c_oflag = oldmodes.c_oflag = mode.c_oflag;
480 modes.c_iflag = oldmodes.c_iflag = mode.c_iflag;
481 modes.c_cflag = oldmodes.c_cflag = mode.c_cflag;
483 modes.c_cc[i] = oldmodes.c_cc[i] = mode.c_cc[i];
485 bmove((char *)&modes, (char *)&oldmodes, sizeof (modes));
486 ospeed = cfgetospeed(&modes);
501 if ((istermios = ioctl(FILEDES, TCGETS, (char *)&modes)) < 0) {
503 modes.c_lflag = mode.c_lflag;
504 modes.c_oflag = mode.c_oflag;
505 modes.c_iflag = mode.c_iflag;
506 modes.c_cflag = mode.c_cflag;
508 modes.c_cc[i] = mode.c_cc[i];
513 modes.c_cc[VQUIT] = reset(modes.c_cc[VQUIT], CQUIT);
514 modes.c_cc[VEOF] = reset(modes.c_cc[VEOF], CEOF);
516 modes.c_iflag |= (BRKINT|ISTRIP|ICRNL|IXON);
517 modes.c_iflag &= ~(IGNBRK|PARMRK|INPCK|INLCR|IGNCR|IUCLC|IXOFF);
518 modes.c_oflag |= (OPOST|ONLCR);
519 modes.c_oflag &= ~(OLCUC|OCRNL|ONOCR|ONLRET|OFILL|OFDEL|
521 modes.c_cflag |= (CS7|CREAD);
522 modes.c_cflag &= ~(PARODD|CLOCAL);
523 modes.c_lflag |= (ISIG|ICANON|ECHO|ECHOK);
524 modes.c_lflag &= ~(XCASE|ECHONL|NOFLSH);
526 mode.c_lflag = modes.c_lflag;
527 mode.c_oflag = modes.c_oflag;
528 mode.c_iflag = modes.c_iflag;
529 mode.c_cflag = modes.c_cflag;
531 mode.c_cc[i] = modes.c_cc[i];
534 (void) ioctl(FILEDES, TCSETSW, (char *)&modes);
889 /* set modes */
896 setdelay("dC", CRdelay, CRbits, &modes.c_oflag);
897 setdelay("dN", NLdelay, NLbits, &modes.c_oflag);
898 setdelay("dB", BSdelay, BSbits, &modes.c_oflag);
899 setdelay("dF", FFdelay, FFbits, &modes.c_oflag);
900 setdelay("dT", TBdelay, TBbits, &modes.c_oflag);
901 setdelay("dV", VTdelay, VTbits, &modes.c_oflag);
904 modes.c_iflag |= IUCLC;
905 modes.c_oflag |= OLCUC;
906 modes.c_cflag |= XCASE;
908 modes.c_iflag &= ~IUCLC;
909 modes.c_oflag &= ~OLCUC;
910 modes.c_cflag &= ~XCASE;
912 modes.c_iflag &= ~(PARMRK|INPCK);
913 modes.c_lflag |= ICANON;
915 modes.c_iflag |= INPCK;
916 modes.c_cflag |= PARENB;
917 modes.c_cflag &= ~PARODD;
920 modes.c_iflag |= INPCK;
921 modes.c_cflag |= PARENB;
922 modes.c_cflag |= PARODD;
925 modes.c_oflag |= ONLCR;
926 modes.c_iflag |= ICRNL;
927 modes.c_lflag |= ECHO;
928 modes.c_oflag |= TAB3;
930 modes.c_oflag &= ~ONLCR;
931 modes.c_iflag &= ~ICRNL;
934 modes.c_lflag &= ~ECHO;
936 modes.c_oflag &= ~TAB3;
938 modes.c_lflag |= (ECHOE|ECHOK);
939 if (tgetflag("hc")) { /* set printer modes */
940 modes.c_lflag &= ~ECHOE;
980 setmode(0); /* set new modes, if they've changed */
1150 mode.c_lflag = modes.c_lflag;
1151 mode.c_oflag = modes.c_oflag;
1152 mode.c_iflag = modes.c_iflag;
1153 mode.c_cflag = modes.c_cflag;
1155 mode.c_cc[i] = modes.c_cc[i];
1159 } else if (!bequal((char *)&modes, (char *)&oldmodes,
1160 sizeof (modes)))
1161 ttymodes = &modes;