public class PrintAboveWriter extends StringWriter
Writer to a LineReader's LineReader.printAbove(String) method,
which draws output above the current prompt / input line.
Example:
LineReader reader = LineReaderBuilder.builder().terminal(terminal).parser(parser).build();
PrintAboveWriter printAbove = new PrintAboveWriter(reader);
printAbove.write(new char[] { 'h', 'i', '!', '\n'});
| Constructor and Description |
|---|
PrintAboveWriter(LineReader reader) |
| Modifier and Type | Method and Description |
|---|---|
void |
flush() |
append, append, append, close, getBuffer, toString, write, write, write, writenullWriter, writepublic PrintAboveWriter(LineReader reader)
public void flush()
flush in interface Flushableflush in class StringWriter