[mod.protocols.tcp-ip] Telnet - local flow control

lepreau@UTAH-CS.ARPA (Jay Lepreau) (12/23/86)

Your line numbers will vary.

*** /tmp/,RCSt1001053	Mon Dec 22 15:52:25 1986
--- telnet.c	Fri Aug  1 00:57:49 1986
***************
*** 122,123 ****
--- 122,125 ----
  int	dontlecho = 0;		/* do we suppress local echoing right now? */
+ int	donelclflow = 0;	/* the user has set "localflow" */
+ int	localflow = 0;		/* do xon/xoff flow control locally */
  
***************
*** 639,640 ****
--- 641,651 ----
  			tc = &notc;
+ 		if (!donelclflow)
+ 			localflow = 0;
+ 		if (localflow) {
+ 			tc->t_startc = ntc.t_startc;
+ 			tc->t_stopc = ntc.t_stopc;
+ 		} else {
+ 			tc->t_startc = -1;
+ 			tc->t_stopc = -1;
+ 		}
  		ltc = &noltc;
***************
*** 1534,1535 ****
--- 1545,1553 ----
  
+ lclflow()
+ {
+ 	
+     donelclflow = 1;
+     return 1;
+ }
+ 
  togdebug()
***************
*** 1579,1581 ****
      { "crmod",
! 	"toggle mapping of received carriage returns",
  	    0,
--- 1597,1599 ----
      { "crmod",
! 	"	toggle mapping of received carriage returns",
  	    0,
***************
*** 1590,1591 ****
--- 1608,1615 ----
  			"recognize certain control characters" },
+     { "localflow",
+ 	"toggle local xon/xoff flow control",
+ 	    lclflow,
+ 		1,
+ 		    &localflow,
+ 			"process ^S/^Q locally" },
      { " ", "", 0, 1 },		/* empty line */