6 Commits

Author SHA1 Message Date
blastmaster
828b5b5368 enabling colors for bmon
This commit enables colors in bmon. It adds configuration options to
let the user decide, which colors should be used. Therefor the graph_rx and graph_tx
layouts are introduced and applied respectively.

* Add graph_rx, graph_tx and layout_cfg fields.
* Setting default colors if colorized output is enabled.
* draw_table accept additional layout parameter and apply the given layout for
  the table graph.
* Apply layouts for rx, tx graph and header and statusbar.
* Add include/layout.h, which provides functions to parse, color and attribute
  strings and set the layout.
* Adding a default layout-config example in examples/bmon.conf.

[Edit: Based on original work by eri!, #PR23]
2016-07-19 22:57:37 +02:00
Thomas Graf
e3d208905d Initialize t to silence uninit warning
Signed-off-by: Thomas Graf <tgraf@suug.ch>
2014-08-25 01:07:19 +02:00
Thomas Graf
be8ef18b74 conf: Read global config from $(sysconfdir)/bmon.conf
Signed-off-by: Thomas Graf <tgraf@suug.ch>
2014-07-06 13:33:12 +02:00
Thomas Graf
46ec101b00 Add -b / --use-bit option to display rates in bit/s instead of bytes/s
Signed-off-by: Thomas Graf <tgraf@suug.ch>
2014-05-08 15:16:38 +02:00
Thomas Graf
d3a53dc1c1 conf: Correctly terminate default config with CFG_END()
Signed-off-by: Thomas Graf <tgraf@suug.ch>
2014-05-08 10:57:23 +02:00
Thomas Graf
3be703f67d Initial import 2013-07-05 15:11:46 +02:00