Re: [hackers] [dmenu] inputw: improve correctness and startup performance || NRK

From: Jochen Sprickerhof <suckless_AT_jochen.sprickerhof.de>
Date: Fri, 29 Apr 2022 17:12:15 +0200

Hi Laslo,

* Laslo Hunhold <dev_AT_frign.de> [2022-04-29 16:57]:
>Yes, a progress indicator would be nonsense in the general case of
>course. In the general case, though, dmenu won't block when reading
>from stdin and I proposed a "busy" indication only in the case a read
>from stdin blocks. What I proposed was that dmenu does it all
>asynchronously and actually creates a window and allows keyboard input
>even when stdin hasn't even been fully consumed yet.
>This would ensure minimal latency on startup and until you can enter a
>query, but would also usually not show a progress indicator, as it
>would usually not block when reading from stdin (which it would do at
>least once before running the string matching algorithm).

That sounds like the non_blocking_stdin patch:

http://tools.suckless.org/dmenu/patches/non_blocking_stdin/

Cheers Jochen

Received on Fri Apr 29 2022 - 17:12:15 CEST

This archive was generated by hypermail 2.3.0 : Fri Apr 29 2022 - 17:48:35 CEST