Constructor and Description |
---|
BufferOutput(Console console) |
BufferOutput(Console console,
java.lang.String mode) |
Modifier and Type | Method and Description |
---|---|
void |
commandDone()
Call when the command finishes executing.
|
void |
print(java.awt.Color color,
java.lang.String msg)
Prints a line of text with the specified color.
|
void |
printColored(java.lang.String message)
Should this run through error handlers and print in colors?
|
void |
setAttrs(int length,
javax.swing.text.AttributeSet attrs)
Changes the attributes of the given text selection to those specified.
|
void |
writeAttrs(javax.swing.text.AttributeSet attrs,
java.lang.String msg)
Prints a string of text with the specified color, without the
terminating newline.
|
public BufferOutput(Console console)
public BufferOutput(Console console, java.lang.String mode)
public void print(java.awt.Color color, java.lang.String msg)
Output
public void writeAttrs(javax.swing.text.AttributeSet attrs, java.lang.String msg)
Output
writeAttrs
in interface Output
attrs
- Character attributesmsg
- The messagepublic void setAttrs(int length, javax.swing.text.AttributeSet attrs)
Output
public void commandDone()
Output
commandDone
in interface Output
public void printColored(java.lang.String message)