On Sep 25, 11:15 pm, Wellu wrote:

> To me this looks weird but that can be due to fact that this is my
> first ncurses program Anyway.. Is this kind of programming as "bad"
> as it looks? Let's say get_progress_info() function takes 10 ms to
> respond. That means that CPU-usage would be 100% all the time which is
> vey bad thing. Does getch() really sleep when no keypress is coming?


IMO, this is ugly. You should dynamically adjust the timeout based on
how long until you have something else to do.

DS