Internet Chess ToolKit
v0.2.0

ictk.boardgame.chess.net.ics.ui.cli
Class ANSIConsole

java.lang.Object
  extended byictk.boardgame.chess.net.ics.ui.cli.ANSIConsole
All Implemented Interfaces:
ICSEventListener

public class ANSIConsole
extends java.lang.Object
implements ICSEventListener

This class is used for XBoard like display of events from the server. Events are color coded for easy discrimination.


Field Summary
static java.lang.String BLACK
           
static java.lang.String BLUE
           
static java.lang.String BOLD_BLACK
           
static java.lang.String BOLD_BLUE
           
static java.lang.String BOLD_CYAN
           
static java.lang.String BOLD_GREEN
           
static java.lang.String BOLD_MAGENTA
           
static java.lang.String BOLD_RED
           
static java.lang.String BOLD_WHITE
           
static java.lang.String BOLD_YELLOW
           
static java.lang.String CYAN
           
 boolean debug
           
static char ESC
           
static java.lang.String GREEN
           
static java.lang.String MAGENTA
           
static java.lang.String PLAIN
           
static java.lang.String RED
           
static java.lang.String WHITE
           
static java.lang.String YELLOW
           
 
Constructor Summary
ANSIConsole()
           
 
Method Summary
 void icsEventDispatched(ICSEvent evt)
          When an event is received by the ICSRouter and this object is on the Listener list, this method will be called.
 boolean isTimestampVisible()
          shows time stamped messages.
 void setTimestampVisible(boolean t)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

debug

public boolean debug

ESC

public static final char ESC
See Also:
Constant Field Values

BLACK

public static final java.lang.String BLACK
See Also:
Constant Field Values

RED

public static final java.lang.String RED
See Also:
Constant Field Values

GREEN

public static final java.lang.String GREEN
See Also:
Constant Field Values

YELLOW

public static final java.lang.String YELLOW
See Also:
Constant Field Values

BLUE

public static final java.lang.String BLUE
See Also:
Constant Field Values

MAGENTA

public static final java.lang.String MAGENTA
See Also:
Constant Field Values

CYAN

public static final java.lang.String CYAN
See Also:
Constant Field Values

WHITE

public static final java.lang.String WHITE
See Also:
Constant Field Values

BOLD_BLACK

public static final java.lang.String BOLD_BLACK
See Also:
Constant Field Values

BOLD_RED

public static final java.lang.String BOLD_RED
See Also:
Constant Field Values

BOLD_GREEN

public static final java.lang.String BOLD_GREEN
See Also:
Constant Field Values

BOLD_YELLOW

public static final java.lang.String BOLD_YELLOW
See Also:
Constant Field Values

BOLD_BLUE

public static final java.lang.String BOLD_BLUE
See Also:
Constant Field Values

BOLD_MAGENTA

public static final java.lang.String BOLD_MAGENTA
See Also:
Constant Field Values

BOLD_CYAN

public static final java.lang.String BOLD_CYAN
See Also:
Constant Field Values

BOLD_WHITE

public static final java.lang.String BOLD_WHITE
See Also:
Constant Field Values

PLAIN

public static final java.lang.String PLAIN
See Also:
Constant Field Values
Constructor Detail

ANSIConsole

public ANSIConsole()
Method Detail

icsEventDispatched

public void icsEventDispatched(ICSEvent evt)
Description copied from interface: ICSEventListener
When an event is received by the ICSRouter and this object is on the Listener list, this method will be called.

Specified by:
icsEventDispatched in interface ICSEventListener

setTimestampVisible

public void setTimestampVisible(boolean t)

isTimestampVisible

public boolean isTimestampVisible()
shows time stamped messages. default: true


Submit a bug or feature
Visit the Website
Internet Chess ToolKit is licensed under the GPL v2 .