trying to block (and save cpu power) more dynamically

instead of blocking too long if inpblock is set to something like
500ms the input timeout is not set directly to inpblock but is
increasing dynamically from 0 to inpblock by a little algorithm

FIXME: the call from the win_* method to the ui_input_* method looks
wrong.. this causes a cross reference which shouldn't be
This commit is contained in:
Simon Effenberg
2015-01-08 23:43:11 +01:00
parent 0d0ed9b7ca
commit c7ff3255b8
7 changed files with 37 additions and 11 deletions

View File

@@ -740,6 +740,8 @@ win_save_print(ProfWin *window, const char show_char, GTimeVal *tstamp,
buffer_push(window->layout->buffer, show_char, time, flags, theme_item, from, message);
_win_print(window, show_char, time, flags, theme_item, from, message);
// TODO: cross-reference.. this should be replaced by a real event-based system
ui_input_nonblocking(TRUE);
}
void
@@ -952,4 +954,4 @@ win_printline_nowrap(WINDOW *win, char *msg)
waddnstr(win, msg, maxx);
wmove(win, cury+1, 0);
}
}