[netsniff-ng] [PATCH 1/3] flowtop: Render table row via raw ncurses buffer

2016-08-22 Thread Vadim Kochan
Render each column to the ncurses raw buffer first, this buffer contains ncurses {char:attr} elements which will be printed to the screen after ui_table_row_show() will be called (at the end of columns rendering by flowtop). The reason of this change is to have easy way to make horizontal scrollin

[netsniff-ng] [PATCH 3/3] ui: Rename ui_table_row_print -> ui_table_row_col_set

2016-08-22 Thread Vadim Kochan
Really ui_table_row_print(x) no more prints anything, it just sets column value in a row. Signed-off-by: Vadim Kochan --- flowtop.c | 44 ++-- ui.c | 2 +- ui.h | 4 ++-- 3 files changed, 25 insertions(+), 25 deletions(-) diff --git a/flowtop.

[netsniff-ng] [PATCH 2/3] flowtop: Add horizontal scrolling over flows table

2016-08-22 Thread Vadim Kochan
Add left/right scrolling for flows list table to make possible see all the columns with a smaller display size. Handle 'Left' & 'Right' keypress to scroll left or right. Signed-off-by: Vadim Kochan --- flowtop.c | 32 +--- ui.c | 25 + ui

[netsniff-ng] [PATCH 0/3] flowtop: Add horizontal scrolling over flows

2016-08-22 Thread Vadim Kochan
In case of smaller than 130 chars display, some of the fields might be hidden, therefore add ability to scroll to left/right over the end of screen to see hidden columns. Also it will allow to extend flow line with additional fields (pps). Used approach from 'htop' tool where scrolling is made ov

[netsniff-ng] [PATCH v2 1/2] build: configure: Add option to specify install path for binary files

2016-08-22 Thread Vadim Kochan
Add new --prefix=PREFIX configure commandline option to specify installation directory for binaries. Add additional check in 'Cmds' file if --prefix was specified from 'configure' script, in that case required installation path components will be created automatically as it is done for 'make PREFI

[netsniff-ng] [PATCH v2 0/2] build: configure: Add support for '--prefix' & '--sysconfdir' options

2016-08-22 Thread Vadim Kochan
Add new 'configure' options: --prefix - to control of installation of binaries & shared files --sysconfdir - to control of installation of config files The old 'make VAR=VALUE' should still work. v2: 1) Reword commit subjects to do not contain option names. Vadim Kochan (2): b

[netsniff-ng] [PATCH v2 2/2] build: configure: Add option to specify install path for /etc files

2016-08-22 Thread Vadim Kochan
Add new '--sysconfdir=PREFIX' option to control installation of config files, files will be installed into PREFIX/etc path. Signed-off-by: Vadim Kochan --- configure | 14 ++ 1 file changed, 14 insertions(+) diff --git a/configure b/configure index db9727c..139483a 100755 --- a/conf