func (s *style) isEmpty() bool {
	return *s == style{}
}
True if style is empty
package terminal
import "strconv"
var emptyStyle = style{}
type style struct {
	fgColor   uint8
	bgColor   uint8
	fgColorX  bool
	bgColorX  bool
	bold      bool
	faint     bool
	italic    bool
	underline bool
	strike    bool
	blink     bool
}
const (
	COLOR_NORMAL        = iota
	COLOR_GOT_38_NEED_5 = iota
	COLOR_GOT_48_NEED_5 = iota
	COLOR_GOT_38        = iota
	COLOR_GOT_48        = iota
)
func (s *style) isEqual(o *style) bool {
	return s == o || *s == *o
}
func (s *style) asClasses() []string {
	var styles []string
	if s.fgColor > 0 && s.fgColor < 38 && !s.fgColorX {
		styles = append(styles, "term-fg"+strconv.Itoa(int(s.fgColor)))
	}
	if s.fgColor > 38 && !s.fgColorX {
		styles = append(styles, "term-fgi"+strconv.Itoa(int(s.fgColor)))
	}
	if s.fgColorX {
		styles = append(styles, "term-fgx"+strconv.Itoa(int(s.fgColor)))
	}
	if s.bgColor > 0 && s.bgColor < 48 && !s.bgColorX {
		styles = append(styles, "term-bg"+strconv.Itoa(int(s.bgColor)))
	}
	if s.bgColor > 48 && !s.bgColorX {
		styles = append(styles, "term-bgi"+strconv.Itoa(int(s.bgColor)))
	}
	if s.bgColorX {
		styles = append(styles, "term-bgx"+strconv.Itoa(int(s.bgColor)))
	}
	if s.bold {
		styles = append(styles, "term-fg1")
	}
	if s.faint {
		styles = append(styles, "term-fg2")
	}
	if s.italic {
		styles = append(styles, "term-fg3")
	}
	if s.underline {
		styles = append(styles, "term-fg4")
	}
	if s.blink {
		styles = append(styles, "term-fg5")
	}
	if s.strike {
		styles = append(styles, "term-fg9")
	}
	return styles
}