I have recognized that a buffer size of 128*4 bytes is quite small to store base64 encoded clipboard content (see OSC52), especially when copying multiple code lines in a terminal editor like vim. 1048576 is 1 mega of 4 byte UTF-8 characters. It is quite big but I simply chose a value that should even be big enough for very large text copy operations. Other values are also OK. The point is that 128*4 bytes are too small for the escape sequence buffer (in my opinion).
Best regards, Ingo Am 24. September 2018 17:05:41 MESZ schrieb Laslo Hunhold <d...@frign.de>: >On Mon, 24 Sep 2018 15:52:41 +0100 >"Roberto E. Vargas Caballero" <k...@shike2.com> wrote: > >Dear Roberto, > >> I would say, why 1048576 and not 1000? or 10000?. >> Is there a specific reason? > >1048576 is 2^20, so it's not completely arbitrary, though the point >really stands as to why there's such a huge jump in size. Can you give >a little information about that, Ingo? > >With best regards > >Laslo > >-- >Laslo Hunhold <d...@frign.de>