From dfbe39abffe7a97cd4e5caca733ad0eec0234db8 Mon Sep 17 00:00:00 2001 From: Renaud G Date: Sun, 25 Sep 2016 04:18:03 +0200 Subject: -add support for red and white color in cli client. --- cli/main.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'cli/main.cpp') diff --git a/cli/main.cpp b/cli/main.cpp index 8c84eb6..7a5ed97 100644 --- a/cli/main.cpp +++ b/cli/main.cpp @@ -77,6 +77,14 @@ QString diceToText(ExportedDiceResult& dice,bool highlight,bool homogeneous) { prefix = "\e[34m%1\e[0m"; } + if(tmp.getColor()=="red") + { + prefix = "\e[31m%1\e[0m"; + } + if(tmp.getColor()=="black") + { + prefix = "\e[30m%1\e[0m"; + } } if(i==0) -- cgit v1.2.3-70-g09d2