org.codehaus.groovy.tools.shell.util
Class ANSI
java.lang.Object
org.codehaus.groovy.tools.shell.util.ANSI
public class ANSI
- extends java.lang.Object
Provides support for using ANSI color escape codes.
- Version:
- $Id: ANSI.java 11949 2008-04-22 09:19:18Z paulk $
- Author:
- Jason Dillon
Field Summary |
private static java.lang.Boolean |
enabled
|
Constructor Summary |
ANSI()
|
Method Summary |
private static boolean |
detect()
Tries to detect if the current system supports ANSI. |
static boolean |
isDetected()
|
static boolean |
isEnabled()
|
static void |
setEnabled(boolean flag)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
enabled
private static java.lang.Boolean enabled
ANSI
public ANSI()
detect
private static boolean detect()
- Tries to detect if the current system supports ANSI.
isDetected
public static boolean isDetected()
setEnabled
public static void setEnabled(boolean flag)
isEnabled
public static boolean isEnabled()
Copyright © ${year} The Codehaus. All Rights Reserved.