Package org.jline.reader
Class PrintAboveWriter
java.lang.Object
java.io.Writer
java.io.StringWriter
org.jline.reader.PrintAboveWriter
- All Implemented Interfaces:
Closeable
,Flushable
,Appendable
,AutoCloseable
Redirects a
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 Details
-
PrintAboveWriter
-
-
Method Details
-
flush
public void flush()- Specified by:
flush
in interfaceFlushable
- Overrides:
flush
in classStringWriter
-