code: func GetTermsize() (int, int) {
  	ts := termSize{}
  	ret, _, _ := syscall.Syscall(
  		syscall.SYS_IOCTL,
  		uintptr(syscall.Stdin),
  		uintptr(syscall.TIOCGWINSZ),
  		uintptr(unsafe.Pointer(&ts)),
  	)
  	if int(ret) == -1 {
  		return -1, -1
  	}
  	return int(ts.Rows), int(ts.Cols)
  }
docs: // GetTermsize returns the size of the current terminal