Support DISCARD (^O)

John Marshall john.marshall at riverwillow.com.au
Tue Aug 12 23:46:48 UTC 2014


On Tue, 12 Aug 2014, 17:12 -0600, Warner Losh wrote:
> On Aug 12, 2014, at 2:44 PM, John Baldwin <jhb at FreeBSD.org> wrote:
> > From: Eivind Nicolay Evensen <eivinde at terraplane.org>
> > Date: July 5, 2014 at 4:34:16 AM MDT
> > On Tue, Dec 17, 2013 at 10:18:16PM +0100, Eivind Evensen wrote:
> >> 
> >> 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.
> >> 
> >> Diff is against FreeBSD 8, however, last time I checked I didn't see
> >> much difference in the newer versions.
> > 
> > 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, not 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.

-- 
John Marshall
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 181 bytes
Desc: not available
URL: <http://lists.freebsd.org/pipermail/freebsd-stable/attachments/20140813/621947c9/attachment.sig>


More information about the freebsd-stable mailing list