#define TIOCFLUSH 0x01 #define RAW 0x02 #define CBREAK 0x04 #define XTABS 0x08 #define CRMOD 0x10 #define ECHO 0x20 struct sgttyb{ int sg_ospeed; int sg_erase; int sg_kill; int sg_flags; // TODO: same struct should be used for /terminal/terminal.h ? };