- java.lang.Object
-
- org.jline.builtins.ScreenTerminal
-
public class ScreenTerminal extends Object
Screen terminal implementation. This class is copied from Apache Karaf WebConsole Gogo plugin and slightly adapted to support alternate screen / resizing / 256 colors.
-
-
Constructor Summary
Constructors Constructor Description ScreenTerminal()ScreenTerminal(int width, int height)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddump(long[] fullscreen, int ftop, int fleft, int fheight, int fwidth, int[] cursor)Stringdump(long timeout, boolean forceDump)booleanisDirty()Stringpipe(String d)Stringread()protected voidsetDirty()booleansetSize(int w, int h)StringtoString()voidwaitDirty()booleanwrite(CharSequence d)
-
-
-
Method Detail
-
isDirty
public boolean isDirty()
-
waitDirty
public void waitDirty() throws InterruptedException- Throws:
InterruptedException
-
setDirty
protected void setDirty()
-
setSize
public boolean setSize(int w, int h)
-
read
public String read()
-
write
public boolean write(CharSequence d)
-
dump
public void dump(long[] fullscreen, int ftop, int fleft, int fheight, int fwidth, int[] cursor)
-
dump
public String dump(long timeout, boolean forceDump) throws InterruptedException
- Throws:
InterruptedException
-
-