From: Alan Cox Date: Mon, 1 Oct 2018 21:51:43 +0000 (+0100) Subject: kernel: add defines for tty termios improvements X-Git-Url: https://git.ndcode.org/public/gitweb.cgi?a=commitdiff_plain;h=0e623060be0d29a41d0aff20ef6104391044b547;p=FUZIX.git kernel: add defines for tty termios improvements --- diff --git a/Kernel/include/tty.h b/Kernel/include/tty.h index 3d3ac4e1..7ad8a213 100644 --- a/Kernel/include/tty.h +++ b/Kernel/include/tty.h @@ -43,6 +43,8 @@ struct termios { #define PARMRK 0x0800 #define IXON 0x1000 +#define _ISYS (ICRNL|INLCR|ISTRIP) /* Flags supported by core */ + #define OPOST 0x0001 /* Supported */ #define OLCUC 0x0002 #define ONLCR 0x0004 /* Supported */ @@ -72,6 +74,8 @@ struct termios { #define FF0 0x0000 #define FF1 0x2000 +#define _OSYS (OPOST|ONLCR|OCRNL) + #define B0 0x0000 #define B50 0x0001 #define B75 0x0002 @@ -103,6 +107,8 @@ struct termios { #define CRTSCTS 0x1000 #define CBAUD 0x000F +#define _CSYS (CREAD|HUPCL|CLOCAL) + #define ECHO 0x0001 /* Supported */ #define ECHOE 0x0002 /* Supported */ #define ECHOK 0x0004 /* Supported */ @@ -114,6 +120,8 @@ struct termios { #define TOSTOP 0x0100 #define XCASE 0x0200 +#define _LSYS (ECHO|ECHOE|ECHOK|ICANON|ISIG) + #define TCSANOW 0 #define TCSADRAIN 1 #define TCSAFLUSH 2 @@ -212,6 +220,7 @@ struct tty { #define CTRL(x) ((x)&0x1F) extern struct tty ttydata[NUM_DEV_TTY + 1]; +extern tcflag_t *termios_mask[NUM_DEV_TTY + 1]; extern void tty_init(void);