forked from fd/terminal
-
Notifications
You must be signed in to change notification settings - Fork 0
/
zdef_netbsd_amd64.go
130 lines (127 loc) · 2.55 KB
/
zdef_netbsd_amd64.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
// go.mkdef -w -export=false def_unix.go def_bsd.go
// MACHINE GENERATED BY go.mkdef (github.com/kless/cutil); DO NOT EDIT
//
// Created by cgo -godefs - DO NOT EDIT
// cgo -godefs _zdef_netbsd_amd64.go
package terminal
const (
B0 = 0x0
B110 = 0x6e
B115200 = 0x1c200
B1200 = 0x4b0
B134 = 0x86
B150 = 0x96
B1800 = 0x708
B19200 = 0x4b00
B200 = 0xc8
B230400 = 0x38400
B2400 = 0x960
B300 = 0x12c
B38400 = 0x9600
B4800 = 0x12c0
B50 = 0x32
B57600 = 0xe100
B600 = 0x258
B75 = 0x4b
B9600 = 0x2580
BRKINT = 0x2
BS0 = 0x0
BS1 = 0x8000
CLOCAL = 0x8000
CR0 = 0x0
CR1 = 0x1000
CR2 = 0x2000
CR3 = 0x3000
CREAD = 0x800
CRTSCTS = 0x10000
CS5 = 0x0
CS6 = 0x100
CS7 = 0x200
CS8 = 0x300
CSIZE = 0x300
CSTOPB = 0x400
ECHO = 0x8
ECHOCTL = 0x40
ECHOE = 0x2
ECHOK = 0x4
ECHOKE = 0x1
ECHONL = 0x10
ECHOPRT = 0x20
EXTA = 0x4b00
EXTB = 0x9600
EXTPROC = 0x800
FF0 = 0x0
FF1 = 0x4000
FLUSHO = 0x800000
HUPCL = 0x4000
ICANON = 0x100
ICRNL = 0x100
IEXTEN = 0x400
IGNBRK = 0x1
IGNCR = 0x80
IGNPAR = 0x4
IMAXBEL = 0x2000
INLCR = 0x40
INPCK = 0x10
ISIG = 0x80
ISTRIP = 0x20
IXANY = 0x800
IXOFF = 0x400
IXON = 0x200
NL0 = 0x0
NL1 = 0x100
NOFLSH = 0x80000000
OCRNL = 0x10
ONLCR = 0x2
ONLRET = 0x40
ONOCR = 0x20
OPOST = 0x1
PARENB = 0x1000
PARMRK = 0x8
PARODD = 0x2000
PENDIN = 0x20000000
TAB0 = 0x0
TAB1 = 0x400
TAB2 = 0x800
_TCSADRAIN = 0x1
_TCSAFLUSH = 0x2
_TCSANOW = 0x0
_TCGETS = 0x402c7413
_TIOCGWINSZ = 0x40087468
_TCSETS = 0x802c7414
_TCSETSF = 0x802c7416
_TCSETSW = 0x802c7415
TOSTOP = 0x400000
VDISCARD = 0xf
VEOF = 0x0
VEOL = 0x1
VEOL2 = 0x2
VERASE = 0x3
VINTR = 0x8
VKILL = 0x5
VLNEXT = 0xe
VMIN = 0x10
VQUIT = 0x9
VREPRINT = 0x6
VSTART = 0xc
VSTOP = 0xd
VSUSP = 0xa
VTIME = 0x11
VWERASE = 0x4
XTABS = 0xc00
)
type termios struct {
Iflag uint32
Oflag uint32
Cflag uint32
Lflag uint32
Cc [20]uint8
Ispeed int32
Ospeed int32
}
type winsize struct {
Row uint16
Col uint16
Xpixel uint16
Ypixel uint16
}