Package org.jline.builtins
Class ScreenTerminal
- java.lang.Object
-
- org.jline.builtins.ScreenTerminal
-
public class ScreenTerminal extends java.lang.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)
java.lang.String
dump(long timeout, boolean forceDump)
boolean
isDirty()
java.lang.String
pipe(java.lang.String d)
java.lang.String
read()
protected void
setDirty()
boolean
setSize(int w, int h)
java.lang.String
toString()
void
waitDirty()
boolean
write(java.lang.CharSequence d)
-
-
-
Method Detail
-
isDirty
public boolean isDirty()
-
waitDirty
public void waitDirty() throws java.lang.InterruptedException
- Throws:
java.lang.InterruptedException
-
setDirty
protected void setDirty()
-
setSize
public boolean setSize(int w, int h)
-
read
public java.lang.String read()
-
pipe
public java.lang.String pipe(java.lang.String d)
-
write
public boolean write(java.lang.CharSequence d)
-
dump
public void dump(long[] fullscreen, int ftop, int fleft, int fheight, int fwidth, int[] cursor)
-
dump
public java.lang.String dump(long timeout, boolean forceDump) throws java.lang.InterruptedException
- Throws:
java.lang.InterruptedException
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-