MCPcopy
hub / github.com/cli/cli / normalizeANSI

Function normalizeANSI

pkg/surveyext/editor_test.go:280–284  ·  view source on GitHub ↗

strips some ANSI escape sequences that we do not want tests to be concerned with

(t string)

Source from the content-addressed store, hash-verified

278
279// strips some ANSI escape sequences that we do not want tests to be concerned with
280func normalizeANSI(t string) string {
281 t = strings.ReplaceAll(t, "\x1b[?25h", "") // strip sequence that shows cursor
282 t = strings.ReplaceAll(t, "\x1b[?25l", "") // strip sequence that hides cursor
283 return t
284}

Calls

no outgoing calls

Tested by

no test coverage detected