// Title draws an image title to a screen.
Title draws an image title to a screen.
// Title draws an image title to a screen .
func Title(s tcell.Screen, title string) {
	width, _ := s.Size()
	center := width / 2
	lines := wordwrap.WordWrap(title, width)
	TitleBarPixels = len(lines)
	for row, line := range lines {
		runes := []rune(line)
		runesStart := center - (len(runes) / 2)
		for i, r := range runes {
			s.SetContent(runesStart+i, row, r, nil, tcell.StyleDefault)
		}
	}
}
func Title ( s tcell . Screen , title string ) { width , _ := s . Size ( ) center := width / 2 lines := wordwrap . WordWrap ( title , width ) TitleBarPixels = len ( lines ) for row , line := range lines { runes := [ ] rune ( line ) runesStart := center - ( len ( runes ) / 2 ) for i , r := range runes { s . SetContent ( runesStart + i , row , r , nil , tcell . StyleDefault ) } } }
Title draws an image title to a screen.
Title draws an image title to a screen .