From owner-freebsd-stable@FreeBSD.ORG Tue Aug 12 23:51:48 2014 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 4422ACBE for ; Tue, 12 Aug 2014 23:51:48 +0000 (UTC) Received: from mail-pd0-f178.google.com (mail-pd0-f178.google.com [209.85.192.178]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 12782284E for ; Tue, 12 Aug 2014 23:51:47 +0000 (UTC) Received: by mail-pd0-f178.google.com with SMTP id w10so13497277pde.9 for ; Tue, 12 Aug 2014 16:51:47 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:sender:content-type:mime-version:subject:from :in-reply-to:date:cc:message-id:references:to; bh=sB+RRE4TuBgVvuXA8wMt68vBdYarKK8WgIpHFd/0B6g=; b=SwGmwt2L4rC3tRmEo8dd9+LM7vAJbH3RucRdj01+rp0s6MAv/JdUS5ULs4R8wVf/MC NFpG1MZ0I1n7uoan3N4t7jW1qZCJJzQSO2zirn8w9tQBUflgeo+zTF9HojrtDknSMNXL z7eE1Zl1ys7ZzoqHaxDSXBObfYiQ4iWQKnITkckY4jBv6pJ6oLGp3ncjEnfPexFh2Awz SZwIIC/JMguWuKYMwTNr7NeWKWtRZ37aPGO1qWjw3aHJpwnGyYOKaFlohD719VrcF4Q3 afMD+mlBd8u5GIox283SSNIAv1XPn2tiqwFTEFJTIsKjxCpFeRIkRazAQhwcICxS0kTr v2TQ== X-Gm-Message-State: ALoCoQkecld7ZWiXfPV1gq4j6VNctLJpX12gAwSef5J3sAD4wOYYam0y4jUptkUBiPMkkXVIiKOy X-Received: by 10.67.4.234 with SMTP id ch10mr774854pad.3.1407887507438; Tue, 12 Aug 2014 16:51:47 -0700 (PDT) Received: from lgmac-rtangirala.corp.netflix.com (dc1-prod.netflix.com. [69.53.236.251]) by mx.google.com with ESMTPSA id zf5sm635096pac.41.2014.08.12.16.51.46 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 12 Aug 2014 16:51:46 -0700 (PDT) Sender: Warner Losh Content-Type: multipart/signed; boundary="Apple-Mail=_F47C52B7-2BC9-4E6B-91AE-A5F1B0A44224"; protocol="application/pgp-signature"; micalg=pgp-sha512 Mime-Version: 1.0 (Mac OS X Mail 7.3 \(1878.6\)) Subject: Re: Support DISCARD (^O) From: Warner Losh In-Reply-To: <20140812234627.GA8627@rwpc15.gfn.riverwillow.net.au> Date: Tue, 12 Aug 2014 17:51:44 -0600 Message-Id: <0A198785-F7E5-4731-9DF7-587E6BDD03C9@bsdimp.com> References: <201408121644.18345.jhb@freebsd.org> <20140812234627.GA8627@rwpc15.gfn.riverwillow.net.au> To: John Marshall X-Mailer: Apple Mail (2.1878.6) Cc: FreeBSD Stable , John Baldwin X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 12 Aug 2014 23:51:48 -0000 --Apple-Mail=_F47C52B7-2BC9-4E6B-91AE-A5F1B0A44224 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii On Aug 12, 2014, at 5:46 PM, John Marshall = wrote: > On Tue, 12 Aug 2014, 17:12 -0600, Warner Losh wrote: >> On Aug 12, 2014, at 2:44 PM, John Baldwin wrote: >>> From: Eivind Nicolay Evensen >>> Date: July 5, 2014 at 4:34:16 AM MDT >>> On Tue, Dec 17, 2013 at 10:18:16PM +0100, Eivind Evensen wrote: >>>>=20 >>>> I don't know if there is any particular reason that support for = DISCARD/^O >>>> was not included in the tty rewrite that happened from FreeBSD 7 to = 8, >>>> but in case anybody else wants it, here's a diff functioning mostly >>>> like in 7, except output isn't switched back on automatically on = input. >>>>=20 >>>> Diff is against FreeBSD 8, however, last time I checked I didn't = see >>>> much difference in the newer versions. >>>=20 >>> Here's a diff against FreeBSD 10. It seems to work fine there too. >=20 >> DISCARD is supposed to turn back off after any character that you = type, not just ^O again. >=20 > Irrespective of exactly how it's implemented, I'd love to see this. > Coming from a VMS background, I was used to a ^O toggle. I reach for = ^O > whenever I unintentionally initiate a huge stream of terminal output > over a WAN link. I was hoping someone would fix that :) However, I agree with you: having = ^O toggle is better than its current state. Warner --Apple-Mail=_F47C52B7-2BC9-4E6B-91AE-A5F1B0A44224 Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=signature.asc Content-Type: application/pgp-signature; name=signature.asc Content-Description: Message signed with OpenPGP using GPGMail -----BEGIN PGP SIGNATURE----- Comment: GPGTools - https://gpgtools.org iQIcBAEBCgAGBQJT6qiQAAoJEGwc0Sh9sBEAQTQP/i0FQHq3fkA9J3fD7zqS7lXX wb+uYpCSfQcIIsjWRsyKxRe/ae8B3jBP5aCBE10fploUmWPlycWtK04fWmuMvEwI G84obh/oVKmZgyYVqCwnb3gM9KHHBTbfptwIHmX+aMRIRHBr8+EN7+TfbwtgLUwu DsQEArprUGn2coM2D7UOfS5CH3blRQUomSSrS0os6JFDEFULYOwiijcCw7uGJMUr Nnub8GRjsWNWsCW7xu3y+OspnXgePkcL8H2097fktQJ1HubyDl2F90oDUd/j1D9q ZWV8l9WflDFeRO4tR7gVV2Toyg2Drf0bXN12y8t+gy3Jnf0jDL8muzveJuPM1u6S eCFLCG8NBihSUhWfpGHnIWV4M5TUwxurdN7HzoUlr0+R8WopUZyEoUGD705FbYXj O6oP0rOMuMjzNrYvaMHAph/nVseOxiTDukvByF+3KucOJEQpEI/p+49Bw1XVRXVp i1Xvr5SGZ7DS7kYS8CkhUrfzTFPJiNQigmhzmldNNEihAopEBQUU0C9UJCaG5kMS EAvbJ3EdA53XYsVIofnht3eZ/9y9NMUWksOH3ON5vkwOWsN3UuJ67QHLfapl3Gzb rzNCjoRrL+Z78Jyt1YMuGqMmOjFxJaob+IUrUhlMahbJ4E5gmAJ3i6kYPyiPSLME ZSYUW3OnBA6EnzDvQUuh =g435 -----END PGP SIGNATURE----- --Apple-Mail=_F47C52B7-2BC9-4E6B-91AE-A5F1B0A44224--