Available on crate feature termios only.
Expand description

Terminal I/O stream operations.

Enums

TC* values for use with tcflow.

TCSA* values for use with tcsetattr.

TC* values for use with tcflush.

Constants

B0

B50

B75

B110

B134

B150

B200

B300

B600

B1200

B1800

B2400

B4800

B9600

B19200

B38400

B57600

B115200

B230400

B460800

B500000

B576000

B921600

B1000000

B1152000

B1500000

B2000000

B2500000

B3000000

B3500000

B4000000

BRKINT

BS0

BS1

BSDLY

CBAUD

CBAUDEX

CIBAUD

CLOCAL

CMSPAR

CR0

CR1

CR2

CR3

CRDLY

CREAD

CRTSCTS

CS5

CS6

CS7

CS8

CSIZE

CSTOPB

ECHO

ECHOCTL

ECHOE

ECHOK

ECHOKE

ECHONL

ECHOPRT

EXTA

EXTB

EXTPROC

FF0

FF1

FFDLY

FLUSHO

HUPCL

ICANON—A flag for the c_lflag field of Termios indicating canonical mode.

ICRNL

IEXTEN

IGNBRK

IGNCR

IGNPAR

IMAXBEL

INLCR

INPCK

ISIG

ISTRIP

IUCLC

IUTF8

IXANY

IXOFF

IXON

NL0

NL1

NLDLY

NOFLSH

OCRNL

OFDEL

OFILL

OLCUC

ONLCR

ONLRET

ONOCR

OPOST

PARENB

PARMRK

PARODD

PENDIN

TAB0

TAB1

TAB2

TAB3

TABDLY

TOSTOP

VDISCARD

VEOF

VEOL

VEOL2

VERASE

VINTR

VKILL

VLNEXT

VMIN

VQUIT

VREPRINT

VSTART

VSTOP

VSUSP

VSWTC

VT0

VT1

VTDLY

VTIME

VWERASE

XCASE

XTABS

Functions

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.

ttynameprocfs

ttyname_r(fd)

Type Definitions

speed_t—A return type for cfsetspeed and similar.

tcflag_t—A type for the flags fields of Termios.

struct termios for use with tcgetattr.

struct winsize for use with tcgetwinsize.