diff options
Diffstat (limited to 'win32/termios.h')
-rw-r--r-- | win32/termios.h | 29 |
1 files changed, 19 insertions, 10 deletions
diff --git a/win32/termios.h b/win32/termios.h index 8408aa3e3..60c51119b 100644 --- a/win32/termios.h +++ b/win32/termios.h | |||
@@ -1,23 +1,32 @@ | |||
1 | #ifndef TERMIOS_H | 1 | #ifndef TERMIOS_H |
2 | #define TERMIOS_H | 2 | #define TERMIOS_H |
3 | 3 | ||
4 | #define VINTR 0 | 4 | #define ECHO 0x0004 |
5 | #define VEOF 1 | ||
6 | 5 | ||
7 | #define TCIFLUSH 0 | 6 | #define VINTR 0 |
8 | #define TCSAFLUSH 1 | 7 | #define VEOF 1 |
9 | #define TCSANOW 2 | 8 | |
10 | #define TCSADRAIN 3 | 9 | #define TCIFLUSH 0 |
11 | #define TCSADFLUSH 4 | 10 | #define TCSAFLUSH 1 |
11 | #define TCSANOW 2 | ||
12 | #define TCSADRAIN 3 | ||
13 | #define TCSADFLUSH 4 | ||
14 | |||
15 | #define CSIZE 0 | ||
12 | 16 | ||
13 | typedef unsigned char cc_t; | 17 | typedef unsigned char cc_t; |
18 | typedef unsigned int tcflag_t; | ||
14 | typedef unsigned int speed_t; | 19 | typedef unsigned int speed_t; |
15 | 20 | ||
16 | #define NCCS 2 | 21 | #define NCCS 18 |
17 | struct termios { | 22 | struct termios { |
23 | tcflag_t c_iflag; | ||
24 | tcflag_t c_oflag; | ||
25 | tcflag_t c_cflag; | ||
26 | tcflag_t c_lflag; | ||
27 | char c_line; | ||
18 | cc_t c_cc[NCCS]; | 28 | cc_t c_cc[NCCS]; |
19 | unsigned long imode; | 29 | unsigned long w_mode; |
20 | unsigned long omode; | ||
21 | }; | 30 | }; |
22 | 31 | ||
23 | struct winsize { | 32 | struct winsize { |