Package sys provide convenient wrappers around syscalls.
SIGWINCH is the Window size change signal.
FlushInput discards data written to a file descriptor but not read.
GetWinsize queries the size of the terminal referenced by the given file.
Ioctl wraps the ioctl syscall.
IsATTY returns true if the given file is a terminal.
WaitForRead blocks until any of the given files is ready to be read or timeout. A negative timeout means no timeout. It returns a boolean array indicating which files are ready to be read and any possible error.
Termios represents terminal attributes.
NewTermiosFromFd extracts the terminal attribute of the given file descriptor.
ApplyToFd applies term to the given file descriptor.
Copy returns a copy of term.
SetEcho sets the echo flag.
SetICRNL sets the CRNL iflag bit
SetICanon sets the canonical flag.
SetVMin sets the minimal number of characters for noncanonical read.
SetVTime sets the timeout in deciseconds for noncanonical read.