code: func (o *Out) GetTtySize() (uint, uint) {
  	if !o.isTerminal {
  		return 0, 0
  	}
  	ws, err := term.GetWinsize(o.fd)
  	if err != nil {
  		logrus.Debugf("Error getting size: %s", err)
  		if ws == nil {
  			return 0, 0
  		}
  	}
  	return uint(ws.Height), uint(ws.Width)
  }
docs: // GetTtySize returns the height and width in characters of the tty