$OpenBSD: patch-conserver_consent_c,v 1.3 2008/06/21 11:29:25 sthen Exp $ --- conserver/consent.c.orig Mon Apr 9 16:52:28 2007 +++ conserver/consent.c Fri Oct 12 11:29:17 2007 @@ -587,7 +587,8 @@ VirtDev(pCE) Error("[%s] tcgetattr(0): %s", pCE->server, strerror(errno)); Bye(EX_OSERR); } - n_tio.c_iflag &= ~(IGNCR | IUCLC); + + n_tio.c_iflag &= ~(IGNCR); n_tio.c_iflag |= ICRNL; if (pCE->ixon == FLAGTRUE) n_tio.c_iflag |= IXON; @@ -595,10 +596,8 @@ VirtDev(pCE) n_tio.c_iflag |= IXANY; if (pCE->ixoff == FLAGTRUE) n_tio.c_iflag |= IXOFF; - n_tio.c_oflag &= - ~(OLCUC | ONOCR | ONLRET | OFILL | NLDLY | CRDLY | TABDLY | BSDLY); n_tio.c_oflag |= OPOST | ONLCR; - n_tio.c_lflag &= ~(XCASE | NOFLSH | ECHOK | ECHONL); + n_tio.c_lflag &= ~(NOFLSH|ECHOK|ECHONL); n_tio.c_lflag |= ISIG | ICANON | ECHO; n_tio.c_cc[VEOF] = '\004'; n_tio.c_cc[VEOL] = '\000';