aboutsummaryrefslogtreecommitdiff
path: root/win32/termios.h
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--win32/termios.h31
1 files changed, 31 insertions, 0 deletions
diff --git a/win32/termios.h b/win32/termios.h
new file mode 100644
index 000000000..8408aa3e3
--- /dev/null
+++ b/win32/termios.h
@@ -0,0 +1,31 @@
1#ifndef TERMIOS_H
2#define TERMIOS_H
3
4#define VINTR 0
5#define VEOF 1
6
7#define TCIFLUSH 0
8#define TCSAFLUSH 1
9#define TCSANOW 2
10#define TCSADRAIN 3
11#define TCSADFLUSH 4
12
13typedef unsigned char cc_t;
14typedef unsigned int speed_t;
15
16#define NCCS 2
17struct termios {
18 cc_t c_cc[NCCS];
19 unsigned long imode;
20 unsigned long omode;
21};
22
23struct winsize {
24 unsigned short ws_row, ws_col;
25 unsigned short ws_xpixel, ws_ypixel;
26};
27
28int tcgetattr(int fd, struct termios *t);
29int tcsetattr(int fd, int mode, const struct termios *t);
30
31#endif /* TERMIOS_H */