Module Name:    src
Committed By:   mlelstv
Date:           Sat Jul 12 05:28:07 UTC 2014

Modified Files:
        src/usr.bin/tip: cmds.c tip.c

Log Message:
don't enable IXANY.


To generate a diff of this commit:
cvs rdiff -u -r1.36 -r1.37 src/usr.bin/tip/cmds.c
cvs rdiff -u -r1.53 -r1.54 src/usr.bin/tip/tip.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/usr.bin/tip/cmds.c
diff -u src/usr.bin/tip/cmds.c:1.36 src/usr.bin/tip/cmds.c:1.37
--- src/usr.bin/tip/cmds.c:1.36	Sun Jun  2 13:18:12 2013
+++ src/usr.bin/tip/cmds.c	Sat Jul 12 05:28:07 2014
@@ -1,4 +1,4 @@
-/*	$NetBSD: cmds.c,v 1.36 2013/06/02 13:18:12 christos Exp $	*/
+/*	$NetBSD: cmds.c,v 1.37 2014/07/12 05:28:07 mlelstv Exp $	*/
 
 /*
  * Copyright (c) 1983, 1993
@@ -34,7 +34,7 @@
 #if 0
 static char sccsid[] = "@(#)cmds.c	8.1 (Berkeley) 6/6/93";
 #endif
-__RCSID("$NetBSD: cmds.c,v 1.36 2013/06/02 13:18:12 christos Exp $");
+__RCSID("$NetBSD: cmds.c,v 1.37 2014/07/12 05:28:07 mlelstv Exp $");
 #endif /* not lint */
 
 #include "tip.h"
@@ -792,11 +792,11 @@ tandem(const char *option)
 
 	(void)tcgetattr(FD, &rmtty);
 	if (strcmp(option, "on") == 0) {
-		rmtty.c_iflag |= IXON|IXOFF|IXANY;
-		term.c_iflag |= IXON|IXOFF|IXANY;
+		rmtty.c_iflag |= IXON|IXOFF;
+		term.c_iflag |= IXON|IXOFF;
 	} else {
-		rmtty.c_iflag &= ~(IXON|IXOFF|IXANY);
-		term.c_iflag &= ~(IXON|IXOFF|IXANY);
+		rmtty.c_iflag &= ~(IXON|IXOFF);
+		term.c_iflag &= ~(IXON|IXOFF);
 	}
 	(void)tcsetattr(FD, TCSADRAIN, &rmtty);
 	(void)tcsetattr(0, TCSADRAIN, &term);

Index: src/usr.bin/tip/tip.c
diff -u src/usr.bin/tip/tip.c:1.53 src/usr.bin/tip/tip.c:1.54
--- src/usr.bin/tip/tip.c:1.53	Mon Oct 21 14:47:46 2013
+++ src/usr.bin/tip/tip.c	Sat Jul 12 05:28:07 2014
@@ -1,4 +1,4 @@
-/*	$NetBSD: tip.c,v 1.53 2013/10/21 14:47:46 christos Exp $	*/
+/*	$NetBSD: tip.c,v 1.54 2014/07/12 05:28:07 mlelstv Exp $	*/
 
 /*
  * Copyright (c) 1983, 1993
@@ -42,7 +42,7 @@ __COPYRIGHT("@(#) Copyright (c) 1983, 19
 #if 0
 static char sccsid[] = "@(#)tip.c	8.1 (Berkeley) 6/6/93";
 #endif
-__RCSID("$NetBSD: tip.c,v 1.53 2013/10/21 14:47:46 christos Exp $");
+__RCSID("$NetBSD: tip.c,v 1.54 2014/07/12 05:28:07 mlelstv Exp $");
 #endif /* not lint */
 
 /*
@@ -497,9 +497,9 @@ ttysetup(speed_t spd)
 	cntrl.c_cc[VMIN] = 1;
 	cntrl.c_cc[VTIME] = 0;
 	if (boolean(value(TAND)))
-		cntrl.c_iflag |= IXOFF|IXON|IXANY;
+		cntrl.c_iflag |= IXOFF|IXON;
 	else
-		cntrl.c_iflag &= ~(IXOFF|IXON|IXANY);
+		cntrl.c_iflag &= ~(IXOFF|IXON);
 	return tcsetattr(FD, TCSAFLUSH, &cntrl);
 }
 

Reply via email to