MCPcopy Index your code
hub / github.com/wavetermdev/waveterm / FormatOSC

Function FormatOSC

pkg/util/shellutil/shellutil.go:646–651  ·  view source on GitHub ↗
(oscNum int, parts ...string)

Source from the content-addressed store, hash-verified

644}
645
646func FormatOSC(oscNum int, parts ...string) string {
647 if len(parts) == 0 {
648 return fmt.Sprintf("\x1b]%d\x07", oscNum)
649 }
650 return fmt.Sprintf("\x1b]%d;%s\x07", oscNum, strings.Join(parts, ";"))
651}

Callers 1

GetTerminalResetSeqFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected