Expand description
Terminal I/O stream operations.
Enums
Constants
B0B50B75B110B134B150B200B300B600B1200B1800B2400B4800B9600B19200B38400B57600B115200B230400B460800B500000B576000B921600B1000000B1152000B1500000B2000000B2500000B3000000B3500000B4000000BRKINTBS0BS1BSDLYCBAUDCBAUDEXCIBAUDCLOCALCMSPARCR0CR1CR2CR3CRDLYCREADCRTSCTSCS5CS6CS7CS8CSIZECSTOPBECHOECHOCTLECHOEECHOKECHOKEECHONLECHOPRTEXTAEXTBEXTPROCFF0FF1FFDLYFLUSHOHUPCLICRNLIEXTENIGNBRKIGNCRIGNPARIMAXBELINLCRINPCKISIGISTRIPIUCLCIUTF8IXANYIXOFFIXONNL0NL1NLDLYNOFLSHOCRNLOFDELOFILLOLCUCONLCRONLRETONOCROPOSTPARENBPARMRKPARODDPENDINTAB0TAB1TAB2TAB3TABDLYTOSTOPVDISCARDVEOFVEOLVEOL2VERASEVINTRVKILLVLNEXTVMINVQUITVREPRINTVSTARTVSTOPVSUSPVSWTCVT0VT1VTDLYVTIMEVWERASEXCASEXTABSFunctions
cfgetispeed(termios)cfgetospeed(termios)cfmakeraw(termios)cfsetispeed(termios, speed)cfsetospeed(termios, speed)cfsetspeed(termios, speed)isatty(fd)—Tests whether a file descriptor refers to a terminal.Translate from a
Speed code to a speed value u32.tcdrain(fd, duration)—Wait until all pending output has been written.tcflow(fd, action)—Suspend or resume transmission or reception.tcflush(fd, queue_selector)—Wait until all pending output has been
written.tcgetattr(fd)—Get terminal attributes.tcgetpgrp(fd)—Get the terminal foreground process group.tcgetsid(fd)—Return the session ID of the current session with fd as
its controlling terminal.tcgetwinsize(fd)—Get the current terminal window size.tcsendbreak(fd, 0)—Transmit zero-valued bits.tcsetattr(fd)—Set terminal attributes.tcsetpgrp(fd, pid)—Set the terminal foreground process group.tcsetwinsize(fd)—Set the current terminal window size.Type Definitions
speed_t—A return type for cfsetspeed and similar.struct winsize for use with tcgetwinsize.