ttk.go
func Unescape(s string) string {
	if len(s) == 0 {
		return ""
	}

	var ret string
	var rw int
	for i := 0; i < len(s); i += rw {
		v, width := utf8.DecodeRuneInString(s[i:])
		if v == '\x1b' {
			_, skip, err := DecodeColor(s[i:])
			if err == nil {
				rw = skip
				continue

			}
		}
		ret += string(v)
		rw = width
	}

	return ret
}
func Unescape(s string) string {
	if len(s) == 0 {
		return ""
	}

	var ret string
	var rw int
	for i := 0; i < len(s); i += rw {
		v, width := utf8.DecodeRuneInString(s[i:])
		if v == '\x1b' {
			_, skip, err := DecodeColor(s[i:])
			if err == nil {
				rw = skip
				continue

			}
		}
		ret += string(v)
		rw = width
	}

	return ret
}
func Unescape ( s string ) string { if len ( s ) == 0 { return " " } var ret string var rw int for i := 0 ; i < len ( s ) ; i += rw { v , width := utf8 . DecodeRuneInString ( s [ i : ] ) if v == '\x1b' { _ , skip , err := DecodeColor ( s [ i : ] ) if err == nil { rw = skip continue } } ret += string ( v ) rw = width } return ret }
// Unescape returns the unescaped string.
Unescape returns the unescaped string .