MCPcopy Create free account
hub / github.com/wavetermdev/waveterm / consumeDebugTermCSI

Function consumeDebugTermCSI

cmd/wsh/cmd/wshcmd-debugterm.go:467–476  ·  view source on GitHub ↗
(data []byte, start int)

Source from the content-addressed store, hash-verified

465}
466
467func consumeDebugTermCSI(data []byte, start int) ([]byte, int) {
468 i := start + 2
469 for i < len(data) {
470 if data[i] >= 0x40 && data[i] <= 0x7e {
471 return data[start : i+1], i + 1
472 }
473 i++
474 }
475 return data[start:], len(data)
476}
477
478func formatDebugTermOSCLine(seq []byte) string {
479 // seq is the full sequence starting with ESC ]

Callers 1

formatDebugTermDecodeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected