X-Git-Url: http://git.nikiroo.be/?a=blobdiff_plain;f=src%2Fjexer%2Fbits%2FCellAttributes.java;h=c14557679ee4ff28298021d492b502661ebd0e2a;hb=c1499886dfc46787e112ec1a6c188aea508dda9d;hp=28dbe31d95637e97a00c0231d7ab7abeefebf13a;hpb=15ea4d7374314d856f72e83f3bc07fe9ec059741;p=nikiroo-utils.git diff --git a/src/jexer/bits/CellAttributes.java b/src/jexer/bits/CellAttributes.java index 28dbe31..c145576 100644 --- a/src/jexer/bits/CellAttributes.java +++ b/src/jexer/bits/CellAttributes.java @@ -294,12 +294,8 @@ public class CellAttributes { */ @Override public String toString() { - if (bold) { - return String.format("bold %s on %s", - foreColor, backColor); - } else { - return String.format("%s on %s", foreColor, backColor); - } + return String.format("%s%s%s on %s", (bold == true ? "bold " : ""), + (blink == true ? "blink " : ""), foreColor, backColor); } }