diff options
| author | Poul-Henning Kamp <phk@FreeBSD.org> | 2004-06-04 21:55:55 +0000 |
|---|---|---|
| committer | Poul-Henning Kamp <phk@FreeBSD.org> | 2004-06-04 21:55:55 +0000 |
| commit | 13e84a71e0463fa26d3b68fba7b598a642a7d3a0 (patch) | |
| tree | 1aba351b2574e6180f5f98824ce4d10b1ba035f7 /sys/dev/cy | |
| parent | fe3ec6224af93e7b7426b3ca6b0c7c2e3eb83c95 (diff) | |
Notes
Diffstat (limited to 'sys/dev/cy')
| -rw-r--r-- | sys/dev/cy/cy.c | 16 |
1 files changed, 1 insertions, 15 deletions
diff --git a/sys/dev/cy/cy.c b/sys/dev/cy/cy.c index 58abf6a24326..9dc95b3e69ea 100644 --- a/sys/dev/cy/cy.c +++ b/sys/dev/cy/cy.c @@ -2585,21 +2585,7 @@ disc_optim(tp, t, com) u_char opt; #endif - /* - * XXX can skip a lot more cases if Smarts. Maybe - * (IGNCR | ISTRIP | IXON) in c_iflag. But perhaps we - * shouldn't skip if (TS_CNTTB | TS_LNCH) is set in t_state. - */ - if (!(t->c_iflag & (ICRNL | IGNCR | IMAXBEL | INLCR | ISTRIP | IXON)) - && (!(t->c_iflag & BRKINT) || (t->c_iflag & IGNBRK)) - && (!(t->c_iflag & PARMRK) - || (t->c_iflag & (IGNPAR | IGNBRK)) == (IGNPAR | IGNBRK)) - && !(t->c_lflag & (ECHO | ICANON | IEXTEN | ISIG | PENDIN)) - && linesw[tp->t_line].l_rint == ttyinput) - tp->t_state |= TS_CAN_BYPASS_L_RINT; - else - tp->t_state &= ~TS_CAN_BYPASS_L_RINT; - com->hotchar = linesw[tp->t_line].l_hotchar; + com->hotchar = ttyldoptim(tp); #ifndef SOFT_HOTCHAR opt = com->cor[2] & ~CD1400_COR3_SCD34; if (com->hotchar != 0) { |
