/* Set given termios to defaults appropriate for communicating with serial port devices.  */
static void native_tty_termios_defaults_set(struct termios *ter)
/* Set given termios to defaults appropriate for communicating with serial port devices.  */
static void native_tty_termios_defaults_set(struct termios *ter)
{
	ter->c_lflag &= ~(ICANON | ISIG | ECHO);
	ter->c_oflag &= ~(OPOST | ONLCR);
	ter->c_iflag &= ~(IXON | IXOFF | IXANY);
	ter->c_cc[VMIN] = 0;
	ter->c_cc[VTIME] = 0;
	ter->c_iflag &= ~(IGNBRK | BRKINT | PARMRK | ISTRIP | INLCR | IGNCR | ICRNL);
	ter->c_cflag |= CREAD | CLOCAL;
}