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)
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)