File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed
terminal-emulator/src/main/java/com/termux/terminal Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -2694,6 +2694,14 @@ void setOscTypeVariables() {
26942694 Integer terminalControlArgsCapacity = null ;
26952695 Integer terminalControlArgsMaxLength = null ;
26962696 switch (mOscType ) {
2697+ case 52 :
2698+ // Android has a `~100KB` limit for sharing/sending `UTF-16` encoded `String`
2699+ // with binder tranasactions, including clipboard, otherwise can result in a
2700+ // `TransactionTooLargeException`.
2701+ // - https://www.reddit.com/r/tasker/comments/prro8t/autoshare_crashed_when_i_pasted_the_file_path/
2702+ terminalControlArgsMaxLength = (100 * 1024 ) +
2703+ /* `52;Pc;` */ 10 ;
2704+ break ;
26972705 case 1337 : // iTerm image command sends the base64 encoded image, do not run complex logic for each byte.
26982706 mIsFastPathOsc = true ;
26992707 mIgnoreCrLfForOsc = true ;
You can’t perform that action at this time.
0 commit comments