Re: [dwm] 4.7 is delayed

From: Anselm R. Garbe <arg_AT_suckless.org>
Date: Sat, 10 Nov 2007 19:48:51 +0100

On Mon, Nov 05, 2007 at 05:01:16AM -0500, Ritesh Kumar wrote:
> I think the best option is to double buffer this thing. So while the input
> is being read (till we encounter a \n), we keep displaying the old string.
> So long as there is a pause between the read()ing of any two \n's we won't
> have flicker or incomplete string display.

Agreed.

> Here is my patch... The basic idea is to keep reading in a separate buffer
> (buf). If a \n or \0 is read then take the front portion of buf (delimited
> by \n or \0) and use it for stext and take the back portion of buf and use
> it the new buf and offset.
>
> Feedback is welcome :)

Well I'm going to apply your patch with some modifications, see
hackers@ archives for details or the next changeset ;)

Regards,

-- 
 Anselm R. Garbe >< http://www.suckless.org/ >< GPG key: 0D73F361
Received on Sat Nov 10 2007 - 19:48:51 UTC

This archive was generated by hypermail 2.2.0 : Sun Jul 13 2008 - 15:05:35 UTC