In the tty rewrite going from 7 to 8 it seems that support for DISCARD/^O was either dropped or forgotten. Here's a diff that gives most of the old functionality, except output is not automatically turned back on upon input. Fix: Patch attached with submission follows: How-To-Repeat: Have something generate output, ^O doesn't discard the output.
Created attachment 144460 [details] Same patch tested and used on FreeBSD 10 Added same diff used/tested on FreeBSD 10.
I'll take this.
So does this implement the complete missing functionality? What else is missing?
(In reply to Adrian Chadd from comment #3) > So does this implement the complete missing functionality? What else is > missing? Comparing with old FreeBSD, the only thing missing is automatic switching output back on on any keypress, not just ^O.
Created attachment 145483 [details] Version setting resid to 0 uio->resid should be set to 0 aswell, for proper return value.
batch change of PRs untouched in 2018 marked "in progress" back to open.