FreeBSD Bugzilla – Attachment 144460 Details for
Bug 184987
Missing support for tty DISCARD/^O
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Same patch tested and used on FreeBSD 10
discfb10.diff (text/plain), 870 bytes, created by
eivinde
on 2014-07-06 14:21:54 UTC
(
hide
)
Description:
Same patch tested and used on FreeBSD 10
Filename:
MIME Type:
Creator:
eivinde
Created:
2014-07-06 14:21:54 UTC
Size:
870 bytes
patch
obsolete
>diff -r 59ad9c4b7916 -r 6e500f4552b4 sys/kern/tty_ttydisc.c >--- a/sys/kern/tty_ttydisc.c Fri Jul 04 17:27:59 2014 +0200 >+++ b/sys/kern/tty_ttydisc.c Fri Jul 04 17:29:29 2014 +0200 >@@ -464,6 +464,9 @@ > if (tp->t_flags & TF_ZOMBIE) > return (EIO); > >+ if (tp->t_termios.c_lflag & FLUSHO) >+ return (0); >+ > /* > * We don't need to check whether the process is the foreground > * process group or if we have a carrier. This is already done >@@ -896,6 +899,14 @@ > > /* Special control characters that are implementation dependent. */ > if (CMP_FLAG(l, IEXTEN)) { >+ /* Discard (^O) */ >+ if (CMP_CC(VDISCARD, c)) { >+ if (!(tp->t_termios.c_lflag & FLUSHO)) >+ ttyoutq_write_nofrag(&tp->t_outq, "^O", 2); >+ tp->t_termios.c_lflag ^= FLUSHO; >+ return(0); >+ } >+ > /* Accept the next character as literal. */ > if (CMP_CC(VLNEXT, c)) { > if (CMP_FLAG(l, ECHO)) {
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 184987
:
138881
| 144460 |
145483