2 package org
.de
.metux
.util
;
6 public static String ESC_FG_GREEN
= "\033[1;32m";
7 public static String ESC_NORMAL
= "\033[m\017";
8 public static String ESC_FG_YELLOW
= "\033[1;33m";
9 public static String ESC_FG_BLUE
= "\033[1;34m";
10 public static String ESC_FG_CYAN
= "\033[1;35m";
11 public static String ESC_FG_RED
= "\033[1;31m";
13 public static String
render(String str
)
15 return __render(__render(str
));
17 public static String
__render(String str
)
20 StrReplace
.replace ( "{TERM_NORMAL}", ESC_NORMAL
,
21 StrReplace
.replace ( "{TERM_FG_GREEN}", ESC_FG_GREEN
,
22 StrReplace
.replace ( "{TERM_FG_YELLOW}", ESC_FG_YELLOW
,
23 StrReplace
.replace ( "{TERM_FG_BLUE}", ESC_FG_BLUE
,
24 StrReplace
.replace ( "{TERM_FG_CYAN}", ESC_FG_CYAN
,
25 StrReplace
.replace ( "{TERM_FG_RED}", ESC_FG_RED
,