From owner-freebsd-stable@FreeBSD.ORG Tue Aug 12 23:46:48 2014 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 66D30A4D; Tue, 12 Aug 2014 23:46:48 +0000 (UTC) Received: from mta1.riverwillow.net.au (mta1.riverwillow.net.au [IPv6:2001:8000:1000:1801::36]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "mta1.riverwillow.net.au", Issuer "Riverwillow Root Certificate 2010-04-12" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id AE98F27A3; Tue, 12 Aug 2014 23:46:47 +0000 (UTC) Received: from mail1.riverwillow.net.au (mail1.riverwillow.net.au [IPv6:2001:8000:1000:1801::46]) by mta1.riverwillow.net.au (8.14.9/8.14.9) with ESMTP id s7CNkWxd097751 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Wed, 13 Aug 2014 09:46:32 +1000 (AEST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=riverwillow.com.au; s=mta1002; t=1407887192; bh=1rQmqdcjoQbV0B4MqQdrujReRUfxVR8+WjxKrm05wyw=; h=Date:From:To:Cc:Subject:References:In-Reply-To; b=cxrIzfJzqtn/0lSm8VyqL5X5+J0KKLn5pRl6G3ttdKs30p+R2ueBE8MphcFc29nAJ ZKwBvO1zRCWCZVQJfzmJeLQe//sugJR5p/PtE/9Op45D1TIY88Mh0uAyCinz4OKLwP ehms9NKuy/je7mbg0qtf+ALtDCzUZ/Ydz2RDFQoE= Received: from rwpc15.gfn.riverwillow.net.au (rwpc15.gfn.riverwillow.net.au [IPv6:2001:8000:1000:18e1:20c:76ff:fe0a:2117]) (authenticated bits=56) by mail1.riverwillow.net.au (8.14.9/8.14.9) with ESMTP id s7CNkTso097750 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=FAIL); Wed, 13 Aug 2014 09:46:31 +1000 (AEST) Date: Wed, 13 Aug 2014 09:46:27 +1000 From: John Marshall To: Warner Losh Subject: Re: Support DISCARD (^O) Message-ID: <20140812234627.GA8627@rwpc15.gfn.riverwillow.net.au> Mail-Followup-To: Warner Losh , John Baldwin , FreeBSD Stable References: <201408121644.18345.jhb@freebsd.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="pWyiEgJYm5f9v55/" Content-Disposition: inline In-Reply-To: OpenPGP: id=A29A84A2; url=http://pki.riverwillow.com.au/pgp/johnmarshall.asc User-Agent: Mutt/1.5.23 (2014-03-12) 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:46:48 -0000 --pWyiEgJYm5f9v55/ Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable 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 DISCAR= D/^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. > DISCARD is supposed to turn back off after any character that you type, n= ot just ^O again. 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. --=20 John Marshall --pWyiEgJYm5f9v55/ Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iEYEARECAAYFAlPqp1MACgkQw/tAaKKahKLjpgCgmYGM6KYE4FWoOTDahRC38VlD /7QAn2EE9ZtTMUsc0oxjfI0UZpbyi5HC =84/R -----END PGP SIGNATURE----- --pWyiEgJYm5f9v55/--