Support DISCARD (^O)

Warner Losh imp at bsdimp.com
Tue Aug 12 23:51:48 UTC 2014


On Aug 12, 2014, at 5:46 PM, John Marshall <john.marshall at riverwillow.com.au> wrote:

> 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.

I was hoping someone would fix that :) However, I agree with you: having ^O toggle is better than its current state.

Warner

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 842 bytes
Desc: Message signed with OpenPGP using GPGMail
URL: <http://lists.freebsd.org/pipermail/freebsd-stable/attachments/20140812/0f2ad6ed/attachment.sig>


More information about the freebsd-stable mailing list