On Sun, Sep 16, 2012 at 12:26 PM, Christoph Lohmann <[email protected]> wrote:
> If  there  is  something  to read from the tty, handle it, then wait for
> five microseconds in select() and see if the  buffer  filled  again.  If
> yes,  handle  this and do it again. After a certain amount of such loops
> (1000) break and redraw the terminal. This arbitary break is  there  be‐
> cause  without  it  the user would see a stuttering in the output and it
> seems to go wrong. This loop number is related to my development machine
> and  a  better  solution  to calculate or replace it with a more natural
> value would be more fitting solution.

I'm not really sure it's simpler then. I will look into it tonight.

> In  the  benchmark  you  proposed (count=500) I could reproduce the same
> times as urxvt with the above changes.

I've made a mistake in the command, you should use /dev/urandom
instead of /dev/random because the latter can block on read, see $ man
4 random.

Reply via email to