Lines Matching defs:tmode
92 struct termios tmode;
129 #define ERASE tmode.c_cc[VERASE]
130 #define KILL tmode.c_cc[VKILL]
131 #define EOT tmode.c_cc[VEOF]
248 (void)tcsetattr(STDIN_FILENO, TCSANOW, &tmode);
266 (void)tcsetattr(STDIN_FILENO, TCSANOW, &tmode);
272 (void)tcsetattr(STDIN_FILENO, TCSANOW, &tmode);
332 cfsetispeed(&tmode, B0);
333 cfsetospeed(&tmode, B0);
334 (void)tcsetattr(STDIN_FILENO, TCSANOW, &tmode);
389 tmode.c_iflag |= ICRNL;
390 tmode.c_oflag |= ONLCR;
394 tmode.sg_flags |= LCASE;
396 tmode.sg_flags &= ~LCASE;
398 if (tcsetattr(STDIN_FILENO, TCSANOW, &tmode) < 0) {
460 if (tcgetattr(STDIN_FILENO, &tmode) < 0) {
464 omode = tmode; /* fill c_cc for dogettytab() */
474 tmode.c_iflag = def.c_iflag;
475 tmode.c_oflag = def.c_oflag;
476 tmode.c_lflag = def.c_lflag;
477 tmode.c_cflag = def.c_cflag;
479 tmode.c_cflag |= CLOCAL;
480 omode = tmode;
493 cfsetispeed(&tmode, speed(IS));
495 cfsetispeed(&tmode, speed(SP));
497 cfsetospeed(&tmode, speed(OS));
499 cfsetospeed(&tmode, speed(SP));
503 cfmakeraw(&tmode);
504 if (tcsetattr(STDIN_FILENO, TCSANOW, &tmode) < 0) {
535 if (tcsetattr(STDIN_FILENO, TCSANOW, &tmode) < 0) {
588 if (cfgetospeed(&tmode) >= 1200)
596 if (cfgetospeed(&tmode) < 1200)
627 speed_t ospeed = cfgetospeed(&tmode);