code: func NewColorParser(str string, defText, defBack term.Attribute) *ColorParser {
  	p := new(ColorParser)
  	p.text = []rune(str)
  	p.defBack, p.defText = defBack, defText
  	p.currBack, p.currText = defBack, defText
  	return p
  }
docs: // NewColorParser creates a new string parser.
  // str is a string to parse.
  // defText is a default text color.
  // defBack is a default background color.
  // Default colors are applied in case of reset color tag