Better IXANY/IXOFF processing into setflags.

Cosmetique 'tab' fix
This commit is contained in:
Andrey A. Chernov 1994-10-11 20:29:42 +00:00
parent dec3cc9756
commit 220553025d
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=3510

View File

@ -31,7 +31,7 @@
* SUCH DAMAGE.
*
* @(#)tty_compat.c 8.1 (Berkeley) 6/10/93
* $Id: tty_compat.c,v 1.5 1994/10/08 22:33:40 phk Exp $
* $Id: tty_compat.c,v 1.6 1994/10/11 20:04:49 ache Exp $
*/
/*
@ -307,7 +307,7 @@ ttcompatsetflags(tp, t)
register long cflag = t->c_cflag;
if (flags & RAW) {
iflag &= IXOFF|IXANY;
iflag = 0;
lflag &= ~(ECHOCTL|ISIG|ICANON|IEXTEN);
} else {
iflag |= BRKINT|IXON|IMAXBEL;
@ -362,6 +362,10 @@ ttcompatsetflags(tp, t)
iflag |= IXOFF;
else
iflag &= ~IXOFF;
if ((flags&DECCTQ) == 0)
iflag |= IXANY;
else
iflag &= ~IXANY;
t->c_iflag = iflag;
t->c_oflag = oflag;
t->c_lflag = lflag;
@ -395,6 +399,10 @@ ttcompatsetlflags(tp, t)
lflag |= ECHOCTL;
else
lflag &= ~ECHOCTL;
if (flags&TANDEM)
iflag |= IXOFF;
else
iflag &= ~IXOFF;
if ((flags&DECCTQ) == 0)
iflag |= IXANY;
else