package sys
import (
)
type Termios unix.Termios
func ( int) (*Termios, error) {
, := unix.IoctlGetTermios(, getAttrIOCTL)
return (*Termios)(),
}
func ( *Termios) ( int) error {
return unix.IoctlSetTermios(, setAttrNowIOCTL, (*unix.Termios)(unsafe.Pointer()))
}
func ( *Termios) () *Termios {
:= *
return &
}
func ( *Termios) ( uint8) {
.Cc[unix.VTIME] =
}
func ( *Termios) ( uint8) {
.Cc[unix.VMIN] =
}
func ( *Termios) ( bool) {
setFlag(&.Lflag, unix.ICANON, )
}
func ( *Termios) ( bool) {
setFlag(&.Lflag, unix.IEXTEN, )
}
func ( *Termios) ( bool) {
setFlag(&.Lflag, unix.ECHO, )
}
func ( *Termios) ( bool) {
setFlag(&.Iflag, unix.ICRNL, )
}