mirror of
https://github.com/Mathewnd/Astral.git
synced 2026-10-27 20:58:22 +00:00
61 lines
1.1 KiB
C
61 lines
1.1 KiB
C
#ifndef _TERMIOS_H
|
|
#define _TERMIOS_H
|
|
|
|
typedef unsigned char cc_t;
|
|
typedef unsigned int speed_t;
|
|
typedef unsigned int tcflag_t;
|
|
|
|
#define ISIG 0000001
|
|
#define ECHO 0000010
|
|
#define ICANON 0000002
|
|
#define INLCR 0000100
|
|
#define IGNCR 0000200
|
|
#define ICRNL 0000400
|
|
#define OCRNL 0000010
|
|
#define ECHOCTL 0001000
|
|
#define ONLCR 0000004
|
|
|
|
#define TCGETS 0x5401
|
|
#define TCSETS 0x5402
|
|
#define TIOCGWINSZ 0x5413
|
|
#define TIOCSWINSZ 0x5414
|
|
|
|
#define NCCS 32
|
|
#define VINTR 0
|
|
#define VQUIT 1
|
|
#define VERASE 2
|
|
#define VKILL 3
|
|
#define VEOF 4
|
|
#define VTIME 5
|
|
#define VMIN 6
|
|
#define VSWTC 7
|
|
#define VSTART 8
|
|
#define VSTOP 9
|
|
#define VSUSP 10
|
|
#define VEOL 11
|
|
#define VREPRINT 12
|
|
#define VDISCARD 13
|
|
#define VWERASE 14
|
|
#define VLNEXT 15
|
|
#define VEOL2 16
|
|
|
|
typedef struct {
|
|
unsigned short ws_row;
|
|
unsigned short ws_col;
|
|
unsigned short ws_xpixel;
|
|
unsigned short ws_ypixel;
|
|
} winsize_t;
|
|
|
|
typedef struct {
|
|
tcflag_t c_iflag;
|
|
tcflag_t c_oflag;
|
|
tcflag_t c_cflag;
|
|
tcflag_t c_lflag;
|
|
cc_t c_line;
|
|
cc_t c_cc[NCCS];
|
|
speed_t ibaud;
|
|
speed_t obaud;
|
|
} termios_t;
|
|
|
|
#endif
|