Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!seismo!lll-lcc!ames!ucbcad!ucbvax!UTAH-CS.ARPA!lepreau From: lepreau@UTAH-CS.ARPA (Jay Lepreau) Newsgroups: mod.protocols.tcp-ip Subject: Re: Telnet - local flow control Message-ID: <8612222301.AA01356@utah-cs.ARPA> Date: Mon, 22-Dec-86 18:01:03 EST Article-I.D.: utah-cs.8612222301.AA01356 Posted: Mon Dec 22 18:01:03 1986 Date-Received: Wed, 24-Dec-86 00:14:59 EST Sender: daemon@ucbvax.BERKELEY.EDU Organization: The ARPA Internet Lines: 57 Approved: tcp-ip@sri-nic.arpa 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 = ¬c; + 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 */