[Feature]: Allow configurable or larger OSC 52 clipboard payload limit
Feature description
Termux currently appears to truncate OSC 52 sequences larger than roughly 6-7KB (base64-encoded). This limits clipboard synchronization when using tools like tmux over SSH, where copying larger blocks of text is common. I understand the need for a safety limit, but would like to see this made configurable or increased to a more practical size (e.g., 64KB or 256KB).
` 6000 works python3 -c "import base64; print('\033]52;c;' + base64.b64encode(b'X'*6000).decode() + '\a', end='')"
7000 fails python3 -c "import base64; print('\033]52;c;' + base64.b64encode(b'X'*7000).decode() + '\a', end='')" `
The clipboard should receive the complete payload, or Termux should provide a configuration option (e.g., in termux.properties) to set a higher limit for users who need it.
Additional information
This has been done in other terminals like st, which switched from a fixed limit to a dynamically growing buffer.
Source: termux/termux-app