diff options
author | Alexis Hildebrandt <afh@surryhill.net> | 2017-10-02 21:01:18 +0200 |
---|---|---|
committer | Thomas Graf <tgraf@suug.ch> | 2017-10-03 11:22:24 +0200 |
commit | b44d0152c47105db081d36b13b590b8f423f0265 (patch) | |
tree | 25f0d4aa21aea387a9846092faf0fcd24611db9b | |
parent | fdd139ada21b958a17d79dd2f1db5d514136d131 (diff) |
Allow numeric colors in bmonrc
-rw-r--r-- | include/bmon/layout.h | 2 |
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; } |