- 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 void
dump(long[] fullscreen, int ftop, int fleft, int fheight, int fwidth, int[] cursor)
String
dump(long timeout, boolean forceDump)
boolean
isDirty()
String
pipe(String d)
String
read()
protected void
setDirty()
boolean
setSize(int w, int h)
String
toString()
void
waitDirty()
boolean
write(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
-
-