blob: bdcdb66fb2d536b33e859327b3ec87707c36aff7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
#ifndef TCTL_H
#define TCTL_H
typedef struct {
unsigned short int height;
unsigned short int width;
unsigned short int ws_xpixel;
unsigned short int ws_ypixel;
} window_size_t;
typedef struct {
unsigned int c_iflag;
unsigned int c_oflag;
unsigned int c_cflag;
unsigned int c_lflag;
unsigned char c_line;
unsigned char c_cc[32];
unsigned int c_ispeed;
unsigned int c_ospeed;
} termios_t;
window_size_t tctl_get_window_size();
void tctl_set_window_size(window_size_t size);
int isatty();
#endif
|