org.apache.geronimo.gshell.ansi
Class Code
java.lang.Object
org.apache.geronimo.gshell.ansi.Code
public class Code
- extends Object
Container for ANSI color codes.
- Version:
- $Rev: 571366 $ $Date: 2007-08-30 21:09:10 -0700 (Thu, 30 Aug 2007) $
|
Constructor Summary |
Code()
|
|
Method Summary |
static String |
attrib(int attr)
|
static int |
forName(String name)
Returns the ANSI code for the given symbolic name. |
static String |
name(int code)
Returns the symbolic name for the given ANSI code. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
OFF
public static final int OFF
- See Also:
- Constant Field Values
BOLD
public static final int BOLD
- See Also:
- Constant Field Values
UNDERSCORE
public static final int UNDERSCORE
- See Also:
- Constant Field Values
BLINK
public static final int BLINK
- See Also:
- Constant Field Values
REVERSE
public static final int REVERSE
- See Also:
- Constant Field Values
CONCEALED
public static final int CONCEALED
- See Also:
- Constant Field Values
FG_BLACK
public static final int FG_BLACK
- See Also:
- Constant Field Values
FG_RED
public static final int FG_RED
- See Also:
- Constant Field Values
FG_GREEN
public static final int FG_GREEN
- See Also:
- Constant Field Values
FG_YELLOW
public static final int FG_YELLOW
- See Also:
- Constant Field Values
FG_BLUE
public static final int FG_BLUE
- See Also:
- Constant Field Values
FG_MAGENTA
public static final int FG_MAGENTA
- See Also:
- Constant Field Values
FG_CYAN
public static final int FG_CYAN
- See Also:
- Constant Field Values
FG_WHITE
public static final int FG_WHITE
- See Also:
- Constant Field Values
BLACK
public static final int BLACK
- See Also:
- Constant Field Values
RED
public static final int RED
- See Also:
- Constant Field Values
GREEN
public static final int GREEN
- See Also:
- Constant Field Values
YELLOW
public static final int YELLOW
- See Also:
- Constant Field Values
BLUE
public static final int BLUE
- See Also:
- Constant Field Values
MAGENTA
public static final int MAGENTA
- See Also:
- Constant Field Values
CYAN
public static final int CYAN
- See Also:
- Constant Field Values
WHITE
public static final int WHITE
- See Also:
- Constant Field Values
BG_BLACK
public static final int BG_BLACK
- See Also:
- Constant Field Values
BG_RED
public static final int BG_RED
- See Also:
- Constant Field Values
BG_GREEN
public static final int BG_GREEN
- See Also:
- Constant Field Values
BG_YELLOW
public static final int BG_YELLOW
- See Also:
- Constant Field Values
BG_BLUE
public static final int BG_BLUE
- See Also:
- Constant Field Values
BG_MAGENTA
public static final int BG_MAGENTA
- See Also:
- Constant Field Values
BG_CYAN
public static final int BG_CYAN
- See Also:
- Constant Field Values
BG_WHITE
public static final int BG_WHITE
- See Also:
- Constant Field Values
Code
public Code()
forName
public static int forName(String name)
throws IllegalArgumentException
- Returns the ANSI code for the given symbolic name. Supported symbolic names are all defined as
fields in
Code where the case is not significant.
- Throws:
IllegalArgumentException
name
public static String name(int code)
throws IllegalArgumentException
- Returns the symbolic name for the given ANSI code.
- Throws:
IllegalArgumentException
attrib
public static String attrib(int attr)
Copyright © 2003-2007 Apache Software Foundation. All Rights Reserved.