Login
Preferences
Help/Guide
About Trac
Wiki
Timeline
Roadmap
Browse Source
View Tickets
Search
Context Navigation
← Previous Revision
Latest Revision
Next Revision →
Blame
Revision Log
source:
trunk
/
src
/
emx
/
bsd
/
curses
/
os2.c
@
1322
Last change
on this file since 1322 was
272
, checked in by
bird
,
23 years ago
Initial revision
Property
cvs2svn:cvs-rev
set to
1.1
Property
svn:eol-style
set to
native
Property
svn:executable
set to
*
File size:
1.1 KB
Line
1
#include
<io.h>
2
#include
<fcntl.h>
3
#include
<sys/termio.h>
4
5
#include
"curses.h"
6
7
8
static
struct
termio
tio
;
9
10
int
_setraw
(
int
on
)
11
{
12
if
(
!
(
on
&
2
)
)
13
{
14
setmode
(
0
,
(
on
&
1
)
?
O_BINARY
:
O_TEXT
);
15
_pfast
=
(
on
&
1
)
||
!
(
_tty
.
c_iflag
&
ICRNL
);