Lines Matching refs:tty

234 struct termios oldtty, tty;  variable
237 struct termio oldtty, tty; variable
268 tty = oldtty; in io_mode()
270 tty.c_iflag = BRKINT|IXON; in io_mode()
272 tty.c_oflag = 0; /* Transparent output */ in io_mode()
274 tty.c_cflag &= ~PARENB; /* Disable parity */ in io_mode()
275 tty.c_cflag |= CS8; /* Set character size = 8 */ in io_mode()
277 tty.c_cflag |= CSTOPB; /* Set two stop bits */ in io_mode()
280 tty.c_lflag = protocol==ZM_ZMODEM ? 0 : ISIG; in io_mode()
281 tty.c_cc[VINTR] = protocol==ZM_ZMODEM ? -1 : 030; /* Interrupt char */ in io_mode()
283 tty.c_lflag = 0; in io_mode()
284 tty.c_cc[VINTR] = protocol==ZM_ZMODEM ? 03 : 030; /* Interrupt char */ in io_mode()
288 tty.c_cc[VQUIT] = _POSIX_VDISABLE; /* Quit char */ in io_mode()
290 tty.c_cc[VQUIT] = -1; /* Quit char */ in io_mode()
293 tty.c_cc[VQUIT] = -1; /* Quit char */ in io_mode()
296 tty.c_cc[VMIN] = 1; in io_mode()
298 tty.c_cc[VMIN] = 3; /* This many chars satisfies reads */ in io_mode()
300 tty.c_cc[VTIME] = 1; /* or in this many tenths of seconds */ in io_mode()
302 tcsetattr(fd,TCSADRAIN,&tty); in io_mode()
311 tty = oldtty; in io_mode()
313 tty.c_iflag = IGNBRK; in io_mode()
315 tty.c_iflag |= IXOFF; in io_mode()
318 tty.c_lflag &= ~(ECHO | ICANON | ISIG); in io_mode()
319 tty.c_oflag = 0; /* Transparent output */ in io_mode()
321 tty.c_cflag &= ~(PARENB); /* Same baud rate, disable parity */ in io_mode()
323 tty.c_cflag &= ~(CSIZE); in io_mode()
324 tty.c_cflag |= CS8; in io_mode()
326 tty.c_cflag |= CSTOPB; /* Set two stop bits */ in io_mode()
328 tty.c_cc[VMIN] = 1; /* This many chars satisfies reads */ in io_mode()
330 tty.c_cc[VMIN] = HOWMANY; /* This many chars satisfies reads */ in io_mode()
332 tty.c_cc[VTIME] = 1; /* or in this many tenths of seconds */ in io_mode()
333 tcsetattr(fd,TCSADRAIN,&tty); in io_mode()
334 Baudrate = getspeed(cfgetospeed(&tty)); in io_mode()
351 tty = oldtty; in io_mode()
353 tty.c_iflag = BRKINT|IXON; in io_mode()
355 tty.c_oflag = 0; /* Transparent output */ in io_mode()
357 tty.c_cflag &= ~PARENB; /* Disable parity */ in io_mode()
358 tty.c_cflag |= CS8; /* Set character size = 8 */ in io_mode()
360 tty.c_cflag |= CSTOPB; /* Set two stop bits */ in io_mode()
364 tty.c_lflag = protocol==ZM_ZMODEM ? 0 : ISIG; in io_mode()
365 tty.c_cc[VINTR] = protocol==ZM_ZMODEM ? -1 : 030; /* Interrupt char */ in io_mode()
367 tty.c_lflag = 0; in io_mode()
368 tty.c_cc[VINTR] = protocol==ZM_ZMODEM ? 03 : 030; /* Interrupt char */ in io_mode()
370 tty.c_cc[VQUIT] = -1; /* Quit char */ in io_mode()
372 tty.c_cc[VMIN] = 1; in io_mode()
374 tty.c_cc[VMIN] = 3; /* This many chars satisfies reads */ in io_mode()
376 tty.c_cc[VTIME] = 1; /* or in this many tenths of seconds */ in io_mode()
378 (void) ioctl(fd, TCSETAW, &tty); in io_mode()
385 tty = oldtty; in io_mode()
387 tty.c_iflag = n==3 ? (IGNBRK|IXOFF) : IGNBRK; in io_mode()
390 tty.c_lflag &= ~(ECHO | ICANON | ISIG); in io_mode()
392 tty.c_oflag = 0; /* Transparent output */ in io_mode()
394 tty.c_cflag &= ~PARENB; /* Same baud rate, disable parity */ in io_mode()
395 tty.c_cflag |= CS8; /* Set character size = 8 */ in io_mode()
397 tty.c_cflag |= CSTOPB; /* Set two stop bits */ in io_mode()
399 tty.c_cc[VMIN] = 1; /* This many chars satisfies reads */ in io_mode()
401 tty.c_cc[VMIN] = HOWMANY; /* This many chars satisfies reads */ in io_mode()
403 tty.c_cc[VTIME] = 1; /* or in this many tenths of seconds */ in io_mode()
404 (void) ioctl(fd, TCSETAW, &tty); in io_mode()
406 Baudrate = getspeed(tty.c_cflag & CBAUD); in io_mode()
436 tty = oldtty; in io_mode()
443 tty.sg_flags |= (ODDP|EVENP|CBREAK); in io_mode()
444 tty.sg_flags &= ~(ALLDELAY|CRMOD|ECHO|LCASE); in io_mode()
445 ioctl(fd, TIOCSETP, &tty); in io_mode()
464 tty = oldtty; in io_mode()
465 tty.sg_flags |= RAW; in io_mode()
466 tty.sg_flags &= ~ECHO; in io_mode()
467 ioctl(fd, TIOCSETP, &tty); in io_mode()
469 Baudrate = getspeed(tty.sg_ospeed); in io_mode()