Simplify screen refresh logic by removing tricky delay
logic which freezes a little key pressing.
Signed-off-by: Vadim Kochan
---
flowtop.c | 21 +++--
1 file changed, 3 insertions(+), 18 deletions(-)
diff --git a/flowtop.c b/flowtop.c
index 3060917..2077fdb
Changed flows list layout to look more a top-like output
with header and in 1 line. When -s option is specified
then layout changes to 2 lines view including with src peer
info and dst under it on next line.
v2:
1) Add UI table widget with generic implementation for
print list items in
Added macros which allow easy specify color pair like:
INIT_COLOR(YELLOW, BLACK);
COLOR(YELLOW, BLACK);
COLOR_ON(YELLOW, BLACK);
by calculating pair id via generic formula. Added shorter
color names via new enum.
Signed-off-by: Vadim Kochan
---
screen.h | 17
Use new colors definitions via enum variables instead of
numbers which helps to undrerstand better which kind
of color is used.
Signed-off-by: Vadim Kochan
---
flowtop.c | 42 ++
1 file changed, 22 insertions(+), 20 deletions(-)
diff
Add new module ui.c which is responsible to render
different kinds of UI widgets - tables, etc.
Implemented generic API for print table-like list of elements.
This table API might be used for print flows in curses or text mode.
Signed-off-by: Vadim Kochan
---
ui.c | 142
Add definitions for list structure & functions without cds_/CDS_ prefix.
The purpose of this change is to use such linked-list in sorting or
ordering some kind of items (e.g. flowtop - flows, columns).
Signed-off-by: Vadim Kochan
---
list.h | 39
On Tue, Mar 29, 2016 at 03:38:58PM +0200, Tobias Klauser wrote:
> On 2016-03-29 at 15:32:43 +0200, Vadim Kochan wrote:
> > On Tue, Mar 29, 2016 at 4:23 PM, Tobias Klauser wrote:
> > > On 2016-03-23 at 22:00:44 +0100, Vadim Kochan wrote: