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

Function consumeDebugTermOSC

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

Source from the content-addressed store, hash-verified

495}
496
497func consumeDebugTermOSC(data []byte, start int) ([]byte, int) {
498 i := start + 2
499 for i < len(data) {
500 if data[i] == 0x07 {
501 return data[start : i+1], i + 1
502 }
503 if data[i] == 0x1b && i+1 < len(data) && data[i+1] == '\\' {
504 return data[start : i+2], i + 2
505 }
506 i++
507 }
508 return data[start:], len(data)
509}
510
511func consumeDebugTermST(data []byte, start int) ([]byte, int) {
512 i := start + 2

Callers 1

formatDebugTermDecodeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected