tty: general improvements to line discipline and new ioctls

This commit is contained in:
Matheus
2024-05-22 09:47:55 -03:00
parent 9e339a2ff2
commit aa6799676b
2 changed files with 133 additions and 23 deletions
+19 -4
View File
@@ -5,13 +5,9 @@ typedef unsigned char cc_t;
typedef unsigned int speed_t;
typedef unsigned int tcflag_t;
#define VINTR 0
#define ISIG 0000001
#define NCCS 32
#define ECHO 0000010
#define ICANON 0000002
#define VTIME 5
#define VMIN 6
#define INLCR 0000100
#define IGNCR 0000200
#define ICRNL 0000400
@@ -24,6 +20,25 @@ typedef unsigned int tcflag_t;
#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;