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
| 125 | // protocol used for writing clipboard data through the terminal. The default is |
| 126 | // 64 KiB; a value of 0 disables the limit. |
| 127 | type OptControlStringLimit int |
| 128 | |
| 129 | func (o OptControlStringLimit) apply(t *tScreen) { |
| 130 | t.controlStringLimit = max(int(o), 0) |
no outgoing calls
no test coverage detected