* Re-implemented in pure golang.
Signed-off-by: xchenan <xchenan@gmail.com>
* Vendored github.com/mattn/go-isatty/ and golang.org/x/sys/unix/; Fixed issues on MacOS
Signed-off-by: xchenan <xchenan@gmail.com>
* Added comments in winsize.go; Removed unused functions and constants in termios_linux.go and termios_bsd.go;
Signed-off-by: xchenan <xchenan@gmail.com>
* Handled distinctive NFDBits and func index's return values according to
different architectures.
Signed-off-by: xchenan <xchenan@gmail.com>