term.termios #
fn flag #
fn flag(value int) TcFlag
flag provides a termios flag of the correct size for the underlying C.termios structure
fn invert #
fn invert(value TcFlag) TcFlag
invert is a platform dependant way to bitwise NOT (~) TcFlag as its length varies across platforms
fn ioctl #
fn ioctl(fd int, request u64, arg voidptr) int
ioctl is an unsafe wrapper around C.ioctl and keeps its semantic
fn tcgetattr #
fn tcgetattr(fd int, mut termios_p Termios) int
tcgetattr is an unsafe wrapper around C.termios and keeps its semantic
fn tcsetattr #
fn tcsetattr(fd int, optional_actions int, mut termios_p Termios) int
tcsetattr is an unsafe wrapper around C.termios and keeps its semantic
struct Termios #
struct Termios {
pub mut:
c_iflag TcFlag
c_oflag TcFlag
c_cflag TcFlag
c_lflag TcFlag
c_line Cc
c_cc [cclen]Cc
c_ispeed Speed
c_ospeed Speed
}