mirror of
https://github.com/freebsd/freebsd-src.git
synced 2024-11-30 06:32:44 +00:00
Better IXANY/IXOFF processing into setflags.
Cosmetique 'tab' fix
This commit is contained in:
parent
dec3cc9756
commit
220553025d
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=3510
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user