26 lines
921 B
Plaintext
26 lines
921 B
Plaintext
$OpenBSD: patch-conserver_consent_c,v 1.2 2005/08/02 07:25:47 pvalchev Exp $
|
|
--- conserver/consent.c.orig Thu Jun 23 23:28:58 2005
|
|
+++ conserver/consent.c Thu Jun 23 23:30:52 2005
|
|
@@ -528,7 +528,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;
|
|
@@ -536,10 +537,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';
|