code: func GetSize(fd int) (width, height int, err error) {
  	var info consoleScreenBufferInfo
  	_, _, e := syscall.Syscall(procGetConsoleScreenBufferInfo.Addr(), 2, uintptr(fd), uintptr(unsafe.Pointer(&info)), 0)
  	if e != 0 {
  		return 0, 0, error(e)
  	}
  	return int(info.size.x), int(info.size.y), nil
  }
docs: // GetSize returns the dimensions of the given terminal.