diff options
author | ache <ache@FreeBSD.org> | 1995-03-29 18:55:20 +0000 |
---|---|---|
committer | ache <ache@FreeBSD.org> | 1995-03-29 18:55:20 +0000 |
commit | 7acb53a8507d17555f822dcb4503a816296123cb (patch) | |
tree | 68bfd406088563e0e62005d553f3948a5e452347 /sys/kern/tty.c | |
parent | 7182aee0af21dc4ef8245f96a44403c096e8ea08 (diff) | |
download | FreeBSD-src-7acb53a8507d17555f822dcb4503a816296123cb.zip FreeBSD-src-7acb53a8507d17555f822dcb4503a816296123cb.tar.gz |
Move parmark 0377 double code after control chars processing
Diffstat (limited to 'sys/kern/tty.c')
-rw-r--r-- | sys/kern/tty.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/sys/kern/tty.c b/sys/kern/tty.c index 28e79ae..881f358 100644 --- a/sys/kern/tty.c +++ b/sys/kern/tty.c @@ -36,7 +36,7 @@ * SUCH DAMAGE. * * @(#)tty.c 8.8 (Berkeley) 1/21/94 - * $Id: tty.c,v 1.37 1995/03/28 11:09:35 ache Exp $ + * $Id: tty.c,v 1.38 1995/03/28 15:25:13 ache Exp $ */ #include "snp.h" @@ -311,11 +311,6 @@ parmrk: (void)putc(0377 | TTY_QUOTE, &tp->t_rawq); ttyblock(tp); if (!ISSET(tp->t_state, TS_TYPEN) && ISSET(iflag, ISTRIP)) CLR(c, 0x80); - - if ( c == 0377 && ISSET(iflag, PARMRK) && !ISSET(iflag, ISTRIP) - && ISSET(iflag, IGNBRK|IGNPAR) != (IGNBRK|IGNPAR)) - (void)putc(0377 | TTY_QUOTE, &tp->t_rawq); - if (!ISSET(lflag, EXTPROC)) { /* * Check for literal nexting very first @@ -518,6 +513,11 @@ parmrk: (void)putc(0377 | TTY_QUOTE, &tp->t_rawq); } goto endcase; } + + if ( c == 0377 && ISSET(iflag, PARMRK) && !ISSET(iflag, ISTRIP) + && ISSET(iflag, IGNBRK|IGNPAR) != (IGNBRK|IGNPAR)) + (void)putc(0377 | TTY_QUOTE, &tp->t_rawq); + /* * Put data char in q for user and * wakeup on seeing a line delimiter. |