@@ 221-225 (lines=5) @@ | ||
218 | public function isSupported() |
|
219 | { |
|
220 | if (DIRECTORY_SEPARATOR === '\\') { |
|
221 | if (function_exists('sapi_windows_vt100_support') && @sapi_windows_vt100_support(STDOUT)) { |
|
222 | return true; |
|
223 | } elseif (getenv('ANSICON') !== false || getenv('ConEmuANSI') === 'ON') { |
|
224 | return true; |
|
225 | } |
|
226 | ||
227 | return false; |
|
228 | } else { |
|
@@ 238-242 (lines=5) @@ | ||
235 | */ |
|
236 | public function are256ColorsSupported() |
|
237 | { |
|
238 | if (DIRECTORY_SEPARATOR === '\\') { |
|
239 | return function_exists('sapi_windows_vt100_support') && @sapi_windows_vt100_support(STDOUT); |
|
240 | } else { |
|
241 | return strpos(getenv('TERM'), '256color') !== false; |
|
242 | } |
|
243 | } |
|
244 | ||
245 | /** |