MCPcopy
hub / github.com/gdamore/tcell / OptControlStringLimit

TypeAlias OptControlStringLimit

tscreen.go:127–127  ·  view source on GitHub ↗

OptControlStringLimit sets the maximum inbound control-string payload size accepted from the terminal before the parser drops the sequence. This limits OSC and XDA strings, including OSC 52 clipboard strings; OSC 52 is the protocol used for writing clipboard data through the terminal. The default is

Source from the content-addressed store, hash-verified

125// protocol used for writing clipboard data through the terminal. The default is
126// 64 KiB; a value of 0 disables the limit.
127type OptControlStringLimit int
128
129func (o OptControlStringLimit) apply(t *tScreen) {
130 t.controlStringLimit = max(int(o), 0)

Callers 2

Calls

no outgoing calls

Tested by

no test coverage detected