MCPcopy Create free account
hub / github.com/git-bug/git-bug / Escape

Method Escape

entities/common/label.go:83–88  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

81type Term256 int
82
83func (t Term256) Escape() string {
84 if fcolor.NoColor {
85 return ""
86 }
87 return fmt.Sprintf("\x1b[38;5;%dm", t)
88}
89
90func (t Term256) Unescape() string {
91 if fcolor.NoColor {

Callers 4

bugsDefaultFormatterFunction · 0.80
renderMethod · 0.80
layoutMethod · 0.80
renderSidebarMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected