Re: [hackers] [st][patch] Increase the buffer size for escape sequences

From: Ingo Heimbach <>
Date: Mon, 24 Sep 2018 22:16:31 +0200

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,

Am 24. September 2018 17:05:41 MESZ schrieb Laslo Hunhold <>:
>On Mon, 24 Sep 2018 15:52:41 +0100
>"Roberto E. Vargas Caballero" <> 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 Hunhold <>
Received on Mon Sep 24 2018 - 22:16:31 CEST

This archive was generated by hypermail 2.3.0 : Mon Sep 24 2018 - 22:24:21 CEST