Lines Matching full:termios
31 #include <termios.h>
303 struct termios termios;
304 memset(&termios, 0, sizeof(termios));
305 termios.c_iflag = ICRNL|IXON|IUTF8;
306 termios.c_oflag = OPOST|ONLCR|NL0|CR0|TAB0|BS0|VT0|FF0;
307 termios.c_cflag = CS8|CREAD;
308 termios.c_lflag = ISIG|ICANON|IEXTEN|ECHO|ECHOE|ECHOK;
310 cfsetispeed(&termios, B38400);
311 cfsetospeed(&termios, B38400);
313 termios.c_cc[VINTR] = 0x1f & 'C';
314 termios.c_cc[VQUIT] = 0x1f & '\\';
315 termios.c_cc[VERASE] = 0x7f;
316 termios.c_cc[VKILL] = 0x1f & 'U';
317 termios.c_cc[VEOF] = 0x1f & 'D';
318 termios.c_cc[VSTART] = 0x1f & 'Q';
319 termios.c_cc[VSTOP] = 0x1f & 'S';
320 termios.c_cc[VSUSP] = 0x1f & 'Z';
321 termios.c_cc[VREPRINT] = 0x1f & 'R';
322 termios.c_cc[VWERASE] = 0x1f & 'W';
323 termios.c_cc[VLNEXT] = 0x1f & 'V';
324 termios.c_cc[VMIN] = 1;
325 termios.c_cc[VTIME] = 0;
334 mChildPid = forkpty(&mMasterFd, NULL, &termios, &size);