code: func GetSize(fd int) (width, height int, err error) {
  	var info windows.ConsoleScreenBufferInfo
  	if err := windows.GetConsoleScreenBufferInfo(windows.Handle(fd), &info); err != nil {
  		return 0, 0, err
  	}
  	return int(info.Size.X), int(info.Size.Y), nil
  }
docs: // GetSize returns the dimensions of the given terminal.