code: func (g *Gui) drawTitle(v *View, fgColor, bgColor Attribute) error {
  	if v.y0 < 0 || v.y0 >= g.maxY {
  		return nil
  	}
  
  	for i, ch := range v.Title {
  		x := v.x0 + i + 2
  		if x < 0 {
  			continue
  		} else if x > v.x1-2 || x >= g.maxX {
  			break
  		}
  		if err := g.SetRune(x, v.y0, ch, fgColor, bgColor); err != nil {
  			return err
  		}
  	}
  	return nil
  }
docs: // drawTitle draws the title of the view.