Documentation ¶
Overview ¶
Package termios implements the low level termios(3) terminal line discipline facilities.
For a higher level interface please use the github.com/pkg/term package.
Index ¶
- Constants
- func Cfgetispeed(attr *syscall.Termios) uint32
- func Cfgetospeed(attr *syscall.Termios) uint32
- func Cfmakecbreak(attr *syscall.Termios)
- func Cfmakeraw(attr *syscall.Termios)
- func Tcdrain(fd uintptr) error
- func Tcflush(fd, selector uintptr) error
- func Tcgetattr(fd uintptr, argp *syscall.Termios) error
- func Tcsendbreak(fd, duration uintptr) error
- func Tcsetattr(fd, action uintptr, argp *syscall.Termios) error
- func Tiocinq(fd uintptr, argp *int) error
- func Tiocmbic(fd uintptr, status *int) error
- func Tiocmbis(fd uintptr, status *int) error
- func Tiocmget(fd uintptr, status *int) error
- func Tiocmset(fd uintptr, status *int) error
- func Tiocoutq(fd uintptr, argp *int) error
Constants ¶
const ( TCIFLUSH = 0 TCOFLUSH = 1 TCIOFLUSH = 2 TCSANOW = 0 TCSADRAIN = 1 TCSAFLUSH = 2 )
const ( TCSETS = 0x5402 TCSETSW = 0x5403 TCSETSF = 0x5404 TCFLSH = 0x540B TCSBRK = 0x5409 TCSBRKP = 0x5425 )
Variables ¶
This section is empty.
Functions ¶
func Cfgetispeed ¶
Cfgetispeed returns the input baud rate stored in the termios structure.
func Cfgetospeed ¶
Cfgetospeed returns the output baud rate stored in the termios structure.
func Cfmakecbreak ¶
Cfmakecbreak modifies attr for cbreak mode.
func Tcdrain ¶
Tcdrain waits until all output written to the object referred to by fd has been transmitted.
func Tcflush ¶
Tcflush discards data written to the object referred to by fd but not transmitted, or data received but not read, depending on the value of selector.
func Tcsendbreak ¶
Tcsendbreak transmits a continuous stream of zero-valued bits for a specific duration, if the terminal is using asynchronous serial data transmission. If duration is zero, it transmits zero-valued bits for at least 0.25 seconds, and not more that 0.5 seconds. If duration is not zero, it sends zero-valued bits for some implementation-defined length of time.
Types ¶
This section is empty.