Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CfMakeRaw ¶
func CfMakeRaw(termios *Termios)
CfMakeRaw sets the flags stored in the termios structure to a state disabling all input and output processing, giving a “raw I/O path”.
From man cfmakeraw(3) on linux: termios_p->c_iflag &= ~(IGNBRK | BRKINT | PARMRK | ISTRIP | INLCR | IGNCR | ICRNL | IXON); termios_p->c_oflag &= ~OPOST; termios_p->c_lflag &= ~(ECHO | ECHONL | ICANON | ISIG | IEXTEN); termios_p->c_cflag &= ~(CSIZE | PARENB); termios_p->c_cflag |= CS8;
Types ¶
type Termios ¶
type Termios struct { Iflag uint32 Oflag uint32 Cflag uint32 Lflag uint32 Cc [20]byte Ispeed uint32 Ospeed uint32 }
Termios holds the TTY attributes. See man termios(4). Tested on linux386, linux/arm, linux/amd64,
freebsd/386, freebsd/arm, freebsd/amd64.
See tremios_64.go for darwin.
Click to show internal directories.
Click to hide internal directories.