Initial revision
This commit is contained in:
parent
4e19ece566
commit
21e0bd5996
1 changed files with 28 additions and 0 deletions
28
include/_tail_cc/termio.h
Normal file
28
include/_tail_cc/termio.h
Normal file
|
@ -0,0 +1,28 @@
|
||||||
|
#ifdef __CHANNEL__
|
||||||
|
#define NCC 8
|
||||||
|
|
||||||
|
#define VMIN 4
|
||||||
|
#define VTIME 5
|
||||||
|
|
||||||
|
#define INLCR 0000100
|
||||||
|
|
||||||
|
#define ONLCR 0000004
|
||||||
|
|
||||||
|
#define ICANON 0000002
|
||||||
|
#define ECHO 0000010
|
||||||
|
|
||||||
|
struct termio {
|
||||||
|
unsigned short c_iflag;
|
||||||
|
unsigned short c_oflag;
|
||||||
|
unsigned short c_cflag;
|
||||||
|
unsigned short c_lflag;
|
||||||
|
char c_line;
|
||||||
|
unsigned char c_cc[NCC];
|
||||||
|
};
|
||||||
|
|
||||||
|
#define TIOC ('T'<<8)
|
||||||
|
#define TCGETA (TIOC|1)
|
||||||
|
#define TCSETA (TIOC|2)
|
||||||
|
#else
|
||||||
|
#include "/usr/include/termio.h"
|
||||||
|
#endif
|
Loading…
Reference in a new issue