tabby icon indicating copy to clipboard operation
tabby copied to clipboard

OSC 52 clipboard not support string length greater than 1024 bytes

Open wangdingwei opened this issue 3 years ago • 1 comments

Describe the problem:

OSC 52 clipboard not support string length greater than 1024/4*3.

To Reproduce:

run follow code in tmux tmux set-buffer -w "$( dd if=/dev/random bs=1024 count=1 | base64)"

Reason:

https://github.com/Eugeny/tabby/blob/45b6e21dbce0ef3155a71699c33e177e7ed2bf78/tabby-terminal/src/middleware/oscProcessing.ts#L15

String variable of data: Buffer max length is 1024 bytes. OSC string sequence will be splitted to multiple data(function call). so the OSCPrefix and OSCSuffix chars will be in different function call.

wangdingwei avatar Mar 24 '22 02:03 wangdingwei

Has there been any attempt at fixing this since 2022? I still encounter it

orangebutblue avatar Nov 29 '25 13:11 orangebutblue

@Eugeny Fix it please

sheikhimoon avatar Dec 16 '25 15:12 sheikhimoon