| 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.
|
static java.lang.String |
guessMode(java.lang.String command)
Guess the edit mode of the output based on the command line executed.
|
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 static java.lang.String guessMode(java.lang.String command)
public void print(java.awt.Color color,
java.lang.String msg)
Outputpublic void writeAttrs(javax.swing.text.AttributeSet attrs,
java.lang.String msg)
OutputwriteAttrs in interface Outputattrs - Character attributesmsg - The messagepublic void setAttrs(int length,
javax.swing.text.AttributeSet attrs)
Outputpublic void commandDone()
OutputcommandDone in interface Outputpublic void printColored(java.lang.String message)