code: func GetWinsize(fd uintptr) (*Winsize, error) {
  	info, err := winterm.GetConsoleScreenBufferInfo(fd)
  	if err != nil {
  		return nil, err
  	}
  
  	winsize := &Winsize{
  		Width:  uint16(info.Window.Right - info.Window.Left + 1),
  		Height: uint16(info.Window.Bottom - info.Window.Top + 1),
  	}
  
  	return winsize, nil
  }
docs: // GetWinsize returns the window size based on the specified file descriptor.