blob: 23c9c5da0f309bc8008e010482572100891270ad [file] [log] [blame]
Andrew Wilkins4ffbbd72015-05-23 15:16:09 +00001// +build darwin
2
3package liner
4
5import "syscall"
6
7const (
8 getTermios = syscall.TIOCGETA
9 setTermios = syscall.TIOCSETA
10)
11
12const (
13 // Input flags
14 inpck = 0x010
15 istrip = 0x020
16 icrnl = 0x100
17 ixon = 0x200
18
19 // Output flags
20 opost = 0x1
21
22 // Control flags
23 cs8 = 0x300
24
25 // Local flags
26 isig = 0x080
27 icanon = 0x100
28 iexten = 0x400
29)
30
31type termios struct {
32 Iflag uintptr
33 Oflag uintptr
34 Cflag uintptr
35 Lflag uintptr
36 Cc [20]byte
37 Ispeed uintptr
38 Ospeed uintptr
39}