Cflag = cuint
IOctl_WinSize = object ws_row*, ws_col*, ws_xpixel*, ws_ypixel*: cushort
Speed = cuint
Termios {.importc: "struct termios", header: "<termios.h>".} = object c_iflag*: Cflag c_oflag*: Cflag c_cflag*: Cflag c_lflag*: Cflag c_line*: cuchar c_cc*: array[NCCS, cuchar] c_ispeed*: Speed c_ospeed*: Speed
B0 {.importc, header: "<termios.h>".}: Speed
B50 {.importc, header: "<termios.h>".}: Speed
B75 {.importc, header: "<termios.h>".}: Speed
B110 {.importc, header: "<termios.h>".}: Speed
B134 {.importc, header: "<termios.h>".}: Speed
B150 {.importc, header: "<termios.h>".}: Speed
B200 {.importc, header: "<termios.h>".}: Speed
B300 {.importc, header: "<termios.h>".}: Speed
B600 {.importc, header: "<termios.h>".}: Speed
B1200 {.importc, header: "<termios.h>".}: Speed
B1800 {.importc, header: "<termios.h>".}: Speed
B2400 {.importc, header: "<termios.h>".}: Speed
B4800 {.importc, header: "<termios.h>".}: Speed
B9600 {.importc, header: "<termios.h>".}: Speed
B19200 {.importc, header: "<termios.h>".}: Speed
B38400 {.importc, header: "<termios.h>".}: Speed
B57600 {.importc, header: "<termios.h>".}: Speed
B115200 {.importc, header: "<termios.h>".}: Speed
B230400 {.importc, header: "<termios.h>".}: Speed
B460800 {.importc, header: "<termios.h>".}: Speed
B500000 {.importc, header: "<termios.h>".}: Speed
B576000 {.importc, header: "<termios.h>".}: Speed
B921600 {.importc, header: "<termios.h>".}: Speed
B1000000 {.importc, header: "<termios.h>".}: Speed
B1152000 {.importc, header: "<termios.h>".}: Speed
B1500000 {.importc, header: "<termios.h>".}: Speed
B2000000 {.importc, header: "<termios.h>".}: Speed
B2500000 {.importc, header: "<termios.h>".}: Speed
B3000000 {.importc, header: "<termios.h>".}: Speed
B3500000 {.importc, header: "<termios.h>".}: Speed
B4000000 {.importc, header: "<termios.h>".}: Speed
BRKINT {.importc, header: "<termios.h>".}: Cflag
BS0 {.importc, header: "<termios.h>".}: Cflag
BS1 {.importc, header: "<termios.h>".}: Cflag
BSDLY {.importc, header: "<termios.h>".}: Cflag
CLOCAL {.importc, header: "<termios.h>".}: Cflag
CR0 {.importc, header: "<termios.h>".}: Cflag
CR1 {.importc, header: "<termios.h>".}: Cflag
CR2 {.importc, header: "<termios.h>".}: Cflag
CR3 {.importc, header: "<termios.h>".}: Cflag
CRDLY {.importc, header: "<termios.h>".}: Cflag
CREAD {.importc, header: "<termios.h>".}: Cflag
CS5 {.importc, header: "<termios.h>".}: Cflag
CS6 {.importc, header: "<termios.h>".}: Cflag
CS7 {.importc, header: "<termios.h>".}: Cflag
CS8 {.importc, header: "<termios.h>".}: Cflag
CSIZE {.importc, header: "<termios.h>".}: Cflag
CSTOPB {.importc, header: "<termios.h>".}: Cflag
ECHO {.importc, header: "<termios.h>".}: Cflag
ECHOE {.importc, header: "<termios.h>".}: Cflag
ECHOK {.importc, header: "<termios.h>".}: Cflag
ECHONL {.importc, header: "<termios.h>".}: Cflag
EXTA {.importc, header: "<termios.h>".}: Speed
EXTB {.importc, header: "<termios.h>".}: Speed
FF0 {.importc, header: "<termios.h>".}: Cflag
FF1 {.importc, header: "<termios.h>".}: Cflag
FFDLY {.importc, header: "<termios.h>".}: Cflag
HUPCL {.importc, header: "<termios.h>".}: Cflag
ICANON {.importc, header: "<termios.h>".}: Cflag
ICRNL {.importc, header: "<termios.h>".}: Cflag
IEXTEN {.importc, header: "<termios.h>".}: Cflag
IGNBRK {.importc, header: "<termios.h>".}: Cflag
IGNCR {.importc, header: "<termios.h>".}: Cflag
IGNPAR {.importc, header: "<termios.h>".}: Cflag
INLCR {.importc, header: "<termios.h>".}: Cflag
INPCK {.importc, header: "<termios.h>".}: Cflag
ISIG {.importc, header: "<termios.h>".}: Cflag
ISTRIP {.importc, header: "<termios.h>".}: Cflag
IUCLC {.importc, header: "<termios.h>".}: Cflag
IXANY {.importc, header: "<termios.h>".}: Cflag
IXOFF {.importc, header: "<termios.h>".}: Cflag
IXON {.importc, header: "<termios.h>".}: Cflag
NL0 {.importc, header: "<termios.h>".}: Cflag
NL1 {.importc, header: "<termios.h>".}: Cflag
NLDLY {.importc, header: "<termios.h>".}: Cflag
NOFLSH {.importc, header: "<termios.h>".}: Cflag
OCRNL {.importc, header: "<termios.h>".}: Cflag
OFDEL {.importc, header: "<termios.h>".}: Cflag
OFILL {.importc, header: "<termios.h>".}: Cflag
ONLCR {.importc, header: "<termios.h>".}: Cflag
ONLRET {.importc, header: "<termios.h>".}: Cflag
ONOCR {.importc, header: "<termios.h>".}: Cflag
OPOST {.importc, header: "<termios.h>".}: Cflag
PARENB {.importc, header: "<termios.h>".}: Cflag
PARMRK {.importc, header: "<termios.h>".}: Cflag
PARODD {.importc, header: "<termios.h>".}: Cflag
TAB0 {.importc, header: "<termios.h>".}: Cflag
TAB1 {.importc, header: "<termios.h>".}: Cflag
TAB2 {.importc, header: "<termios.h>".}: Cflag
TAB3 {.importc, header: "<termios.h>".}: Cflag
TABDLY {.importc, header: "<termios.h>".}: Cflag
TCIFLUSH {.importc, header: "<termios.h>".}: cint
TCIOFF {.importc, header: "<termios.h>".}: cint
TCIOFLUSH {.importc, header: "<termios.h>".}: cint
TCION {.importc, header: "<termios.h>".}: cint
TCOFLUSH {.importc, header: "<termios.h>".}: cint
TCOOFF {.importc, header: "<termios.h>".}: cint
TCOON {.importc, header: "<termios.h>".}: cint
TCSADRAIN {.importc, header: "<termios.h>".}: cint
TCSAFLUSH {.importc, header: "<termios.h>".}: cint
TCSANOW {.importc, header: "<termios.h>".}: cint
TIOCGWINSZ {.importc, header: "<sys/ioctl.h>".}: culong
TOSTOP {.importc, header: "<termios.h>".}: Cflag
VEOF {.importc, header: "<termios.h>".}: cint
VEOL {.importc, header: "<termios.h>".}: cint
VERASE {.importc, header: "<termios.h>".}: cint
VINTR {.importc, header: "<termios.h>".}: cint
VKILL {.importc, header: "<termios.h>".}: cint
VMIN {.importc, header: "<termios.h>".}: cint
VQUIT {.importc, header: "<termios.h>".}: cint
VSTART {.importc, header: "<termios.h>".}: cint
VSTOP {.importc, header: "<termios.h>".}: cint
VSUSP {.importc, header: "<termios.h>".}: cint
VT0 {.importc, header: "<termios.h>".}: Cflag
VT1 {.importc, header: "<termios.h>".}: Cflag
VTDLY {.importc, header: "<termios.h>".}: Cflag
VTIME {.importc, header: "<termios.h>".}: cint
NCCS = 32
proc cfGetIspeed(termios: ptr Termios): Speed {.importc: "cfgetispeed", header: "<termios.h>", ...raises: [], tags: [], forbids: [].}
proc cfGetOspeed(termios: ptr Termios): Speed {.importc: "cfgetospeed", header: "<termios.h>", ...raises: [], tags: [], forbids: [].}
proc cfSetIspeed(termios: ptr Termios; speed: Speed): cint {. importc: "cfsetispeed", header: "<termios.h>", ...raises: [], tags: [], forbids: [].}
proc cfSetOspeed(termios: ptr Termios; speed: Speed): cint {. importc: "cfsetospeed", header: "<termios.h>", ...raises: [], tags: [], forbids: [].}
proc ioctl(fd: cint; request: culong; reply: ptr IOctl_WinSize): int {. importc: "ioctl", header: "<stdio.h>", varargs, ...raises: [], tags: [], forbids: [].}
proc tcDrain(fd: cint): cint {.importc: "tcdrain", header: "<termios.h>", ...raises: [], tags: [], forbids: [].}
proc tcFlow(fd: cint; action: cint): cint {.importc: "tcflow", header: "<termios.h>", ...raises: [], tags: [], forbids: [].}
proc tcFlush(fd: cint; queue_selector: cint): cint {.importc: "tcflush", header: "<termios.h>", ...raises: [], tags: [], forbids: [].}
proc tcGetAttr(fd: cint; termios: ptr Termios): cint {.importc: "tcgetattr", header: "<termios.h>", ...raises: [], tags: [], forbids: [].}
proc tcSendBreak(fd: cint; duration: cint): cint {.importc: "tcsendbreak", header: "<termios.h>", ...raises: [], tags: [], forbids: [].}
proc tcSetAttr(fd: cint; optional_actions: cint; termios: ptr Termios): cint {. importc: "tcsetattr", header: "<termios.h>", ...raises: [], tags: [], forbids: [].}
template cceq(val, c): untyped