From cdefcbd72ae5d85fbef348a601fb1b9d7b1425ca Mon Sep 17 00:00:00 2001 From: Shoghi Cervantes Date: Mon, 27 Jan 2014 18:19:45 +0100 Subject: [PATCH] Fixed #823 /help outputs ansi colors --- src/API/ConsoleAPI.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/API/ConsoleAPI.php b/src/API/ConsoleAPI.php index a3e53567a..1e0cee742 100644 --- a/src/API/ConsoleAPI.php +++ b/src/API/ConsoleAPI.php @@ -131,7 +131,7 @@ class ConsoleAPI{ $max = ceil(count($cmds) / 5); $page = (int) (isset($params[0]) ? min($max, max(1, intval($params[0]))):1); - $output .= "\x1b[31;1m-\x1b[0m Showing help page $page of $max (/help ) \x1b[31;1m-\x1b[0m\n"; + $output .= FORMAT_RED."-".FORMAT_RESET." Showing help page $page of $max (/help ) ".FORMAT_RED."-".FORMAT_RESET."\n"; $current = 1; foreach($cmds as $c => $h){ $curpage = (int) ceil($current / 5);