4 _PROTOTYPE( static void ttysetflags
, (void) );
6 static void ttysetflags()
8 _tty
.c_iflag
|= ICRNL
| IXON
;
9 _tty
.c_oflag
|= OPOST
| ONLCR
;
10 _tty
.c_lflag
|= ECHO
| ICANON
| IEXTEN
| ISIG
;
12 if (_cursvar
.rawmode
) {
13 _tty
.c_iflag
&= ~(ICRNL
| IXON
);
14 _tty
.c_oflag
&= ~(OPOST
);
15 _tty
.c_lflag
&= ~(ICANON
| IEXTEN
| ISIG
);
17 if (_cursvar
.cbrkmode
) {
18 _tty
.c_lflag
&= ~(ICANON
);
20 if (!_cursvar
.echoit
) {
21 _tty
.c_lflag
&= ~(ECHO
| ECHONL
);
24 _tty
.c_iflag
&= ~(ICRNL
);
25 _tty
.c_oflag
&= ~(ONLCR
);
27 tcsetattr(0, TCSANOW
, &_tty
);
32 _cursvar
.rawmode
= TRUE
;
38 _cursvar
.rawmode
= FALSE
;
44 _cursvar
.echoit
= TRUE
;
50 _cursvar
.echoit
= FALSE
;
68 _cursvar
.cbrkmode
= TRUE
;
74 _cursvar
.cbrkmode
= FALSE
;