MentOS  0.8.0
The Mentoring Operating System
termios-struct.h
Go to the documentation of this file.
1 
6 #pragma once
7 
9 typedef unsigned char cc_t;
11 typedef unsigned int speed_t;
13 typedef unsigned int tcflag_t;
15 #define NCCS 32
16 
18 typedef struct termios {
28 
29 //These flags generally control higher-level aspects of input processing than
30 // the input modes flags described in Input Modes, such as echoing, signals, and
31 // the choice of canonical or noncanonical input.
32 
33 #define ISIG 0x00000080
34 #define ICANON 0x00000100
35 #define ECHO 0x00000008
36 #define ECHOE 0x00000002
37 #define ECHOK 0x00000004
38 #define ECHONL 0x00000010
39 #define NOFLSH 0x80000000
40 #define TOSTOP 0x00400000
41 #define ECHOCTL 0x00000040
42 #define ECHOKE 0x00000001
43 #define IEXTEN 0x00000400
44 
46 #define CTRL(x) ((x) & 037)
Stores information about a terminal IOs.
Definition: termios-struct.h:18
speed_t c_ispeed
input speed
Definition: termios-struct.h:25
speed_t c_ospeed
output speed
Definition: termios-struct.h:26
tcflag_t c_cflag
control mode flags
Definition: termios-struct.h:21
cc_t c_cc[NCCS]
control characters
Definition: termios-struct.h:24
tcflag_t c_iflag
input mode flags
Definition: termios-struct.h:19
tcflag_t c_lflag
local mode flags
Definition: termios-struct.h:22
tcflag_t c_oflag
output mode flags
Definition: termios-struct.h:20
cc_t c_line
line discipline
Definition: termios-struct.h:23
unsigned char cc_t
Type for control characters.
Definition: termios-struct.h:9
unsigned int speed_t
Type for speed.
Definition: termios-struct.h:11
#define NCCS
The number of control characters.
Definition: termios-struct.h:15
struct termios termios_t
Stores information about a terminal IOs.
unsigned int tcflag_t
Type for flags.
Definition: termios-struct.h:13