diff options
author | blastmaster <blastmaster@tuxcode.org> | 2016-07-16 01:53:42 +0200 |
---|---|---|
committer | Thomas Graf <tgraf@suug.ch> | 2016-07-19 22:57:37 +0200 |
commit | 828b5b5368bc5054b16a2504fcbb7a7e77087598 (patch) | |
tree | ff274a541dd3184bcc879d6d26a434a21c6c1bff /examples/bmon.conf | |
parent | 1c25eacc95d209716084d9fb28db4c7340b74471 (diff) |
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]
Diffstat (limited to 'examples/bmon.conf')
-rw-r--r-- | examples/bmon.conf | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/examples/bmon.conf b/examples/bmon.conf index 389b054..93d64c3 100644 --- a/examples/bmon.conf +++ b/examples/bmon.conf @@ -86,3 +86,27 @@ history day { interval = 86400. size = 60 } + +layout colors { + color default { + color_pair = {"white", "black"} + } + color statusbar { + color_pair = {"blue", "white", "reverse"} + } + color header { + color_pair = {"yellow", "black"} + } + color list { + color_pair = {"white", "black"} + } + color selected { + color_pair = {"white", "black", "reverse"} + } + color RX_graph { + color_pair = {"green", "black"} + } + color TX_graph { + color_pair = {"red", "black"} + } +} |