termios

Speed = cuint
  ソース 編集
Cflag = cuint
  ソース 編集
Termios {...}{.importc: "struct termios", header: "<termios.h>".} = object
  c_iflag*: Cflag
  c_oflag*: Cflag
  c_cflag*: Cflag
  c_lflag*: Cflag
  c_cc*: array[NCCS, cuchar]
  ソース 編集
IOctl_WinSize = object
  ws_row*, ws_col*, ws_xpixel*, ws_ypixel*: cushort
  ソース 編集

変数

VINTR: cint
  ソース 編集
VQUIT: cint
  ソース 編集
VERASE: cint
  ソース 編集
VKILL: cint
  ソース 編集
VEOF: cint
  ソース 編集
VTIME: cint
  ソース 編集
VMIN: cint
  ソース 編集
VSTART: cint
  ソース 編集
VSTOP: cint
  ソース 編集
VSUSP: cint
  ソース 編集
VEOL: cint
  ソース 編集
IGNBRK: Cflag
  ソース 編集
BRKINT: Cflag
  ソース 編集
IGNPAR: Cflag
  ソース 編集
PARMRK: Cflag
  ソース 編集
INPCK: Cflag
  ソース 編集
ISTRIP: Cflag
  ソース 編集
INLCR: Cflag
  ソース 編集
IGNCR: Cflag
  ソース 編集
ICRNL: Cflag
  ソース 編集
IUCLC: Cflag
  ソース 編集
IXON: Cflag
  ソース 編集
IXANY: Cflag
  ソース 編集
IXOFF: Cflag
  ソース 編集
OPOST: Cflag
  ソース 編集
ONLCR: Cflag
  ソース 編集
OCRNL: Cflag
  ソース 編集
ONOCR: Cflag
  ソース 編集
ONLRET: Cflag
  ソース 編集
OFILL: Cflag
  ソース 編集
OFDEL: Cflag
  ソース 編集
NLDLY: Cflag
  ソース 編集
NL0: Cflag
  ソース 編集
NL1: Cflag
  ソース 編集
CRDLY: Cflag
  ソース 編集
CR0: Cflag
  ソース 編集
CR1: Cflag
  ソース 編集
CR2: Cflag
  ソース 編集
CR3: Cflag
  ソース 編集
TABDLY: Cflag
  ソース 編集
TAB0: Cflag
  ソース 編集
TAB1: Cflag
  ソース 編集
TAB2: Cflag
  ソース 編集
TAB3: Cflag
  ソース 編集
BSDLY: Cflag
  ソース 編集
BS0: Cflag
  ソース 編集
BS1: Cflag
  ソース 編集
FFDLY: Cflag
  ソース 編集
FF0: Cflag
  ソース 編集
FF1: Cflag
  ソース 編集
VTDLY: Cflag
  ソース 編集
VT0: Cflag
  ソース 編集
VT1: Cflag
  ソース 編集
B0: Speed
  ソース 編集
B50: Speed
  ソース 編集
B75: Speed
  ソース 編集
B110: Speed
  ソース 編集
B134: Speed
  ソース 編集
B150: Speed
  ソース 編集
B200: Speed
  ソース 編集
B300: Speed
  ソース 編集
B600: Speed
  ソース 編集
B1200: Speed
  ソース 編集
B1800: Speed
  ソース 編集
B2400: Speed
  ソース 編集
B4800: Speed
  ソース 編集
B9600: Speed
  ソース 編集
B19200: Speed
  ソース 編集
B38400: Speed
  ソース 編集
B57600: Speed
  ソース 編集
B115200: Speed
  ソース 編集
B230400: Speed
  ソース 編集
B460800: Speed
  ソース 編集
B500000: Speed
  ソース 編集
B576000: Speed
  ソース 編集
B921600: Speed
  ソース 編集
B1000000: Speed
  ソース 編集
B1152000: Speed
  ソース 編集
B1500000: Speed
  ソース 編集
B2000000: Speed
  ソース 編集
B2500000: Speed
  ソース 編集
B3000000: Speed
  ソース 編集
B3500000: Speed
  ソース 編集
B4000000: Speed
  ソース 編集
EXTA: Speed
  ソース 編集
EXTB: Speed
  ソース 編集
CSIZE: Cflag
  ソース 編集
CS5: Cflag
  ソース 編集
CS6: Cflag
  ソース 編集
CS7: Cflag
  ソース 編集
CS8: Cflag
  ソース 編集
CSTOPB: Cflag
  ソース 編集
CREAD: Cflag
  ソース 編集
PARENB: Cflag
  ソース 編集
PARODD: Cflag
  ソース 編集
HUPCL: Cflag
  ソース 編集
CLOCAL: Cflag
  ソース 編集
ISIG: Cflag
  ソース 編集
ICANON: Cflag
  ソース 編集
ECHO: Cflag
  ソース 編集
ECHOE: Cflag
  ソース 編集
ECHOK: Cflag
  ソース 編集
ECHONL: Cflag
  ソース 編集
NOFLSH: Cflag
  ソース 編集
TOSTOP: Cflag
  ソース 編集
IEXTEN: Cflag
  ソース 編集
TCOOFF: cint
  ソース 編集
TCOON: cint
  ソース 編集
TCIOFF: cint
  ソース 編集
TCION: cint
  ソース 編集
TCIFLUSH: cint
  ソース 編集
TCOFLUSH: cint
  ソース 編集
TCIOFLUSH: cint
  ソース 編集
TCSANOW: cint
  ソース 編集
TCSADRAIN: cint
  ソース 編集
TCSAFLUSH: cint
  ソース 編集
TIOCGWINSZ: culong
  ソース 編集

プロシージャ

proc cfGetOspeed(termios: ptr Termios): Speed {...}{.importc: "cfgetospeed",
    header: "<termios.h>".}
  ソース 編集
proc cfGetIspeed(termios: ptr Termios): Speed {...}{.importc: "cfgetispeed",
    header: "<termios.h>".}
  ソース 編集
proc cfSetOspeed(termios: ptr Termios; speed: Speed): cint {...}{.importc: "cfsetospeed",
    header: "<termios.h>".}
  ソース 編集
proc cfSetIspeed(termios: ptr Termios; speed: Speed): cint {...}{.importc: "cfsetispeed",
    header: "<termios.h>".}
  ソース 編集
proc tcGetAttr(fd: cint; termios: ptr Termios): cint {...}{.importc: "tcgetattr",
    header: "<termios.h>".}
  ソース 編集
proc tcSetAttr(fd: cint; optional_actions: cint; termios: ptr Termios): cint {...}{.
    importc: "tcsetattr", header: "<termios.h>".}
  ソース 編集
proc tcSendBreak(fd: cint; duration: cint): cint {...}{.importc: "tcsendbreak",
    header: "<termios.h>".}
  ソース 編集
proc tcDrain(fd: cint): cint {...}{.importc: "tcdrain", header: "<termios.h>".}
  ソース 編集
proc tcFlush(fd: cint; queue_selector: cint): cint {...}{.importc: "tcflush",
    header: "<termios.h>".}
  ソース 編集
proc tcFlow(fd: cint; action: cint): cint {...}{.importc: "tcflow", header: "<termios.h>".}
  ソース 編集
proc ioctl(fd: cint; request: culong; reply: ptr IOctl_WinSize): int {...}{.importc: "ioctl",
    header: "<stdio.h>", varargs.}
  ソース 編集