summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexis Hildebrandt <afh@surryhill.net>2017-10-02 21:01:18 +0200
committerThomas Graf <tgraf@suug.ch>2017-10-03 11:22:24 +0200
commitb44d0152c47105db081d36b13b590b8f423f0265 (patch)
tree25f0d4aa21aea387a9846092faf0fcd24611db9b
parentfdd139ada21b958a17d79dd2f1db5d514136d131 (diff)
Allow numeric colors in bmonrc
-rw-r--r--include/bmon/layout.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/bmon/layout.h b/include/bmon/layout.h
index cca2a4c..4633806 100644
--- a/include/bmon/layout.h
+++ b/include/bmon/layout.h
@@ -28,6 +28,8 @@ static int parse_color(const char* color)
color_code = COLOR_MAGENTA;
else if ((strcasestr(color, "cyan") != NULL))
color_code = COLOR_CYAN;
+ else if ((atoi(color) >= 0))
+ color_code = atoi(color);
return color_code;
}