Package org.jline.builtins
Class ScreenTerminal
java.lang.Object
org.jline.builtins.ScreenTerminal
A virtual terminal screen implementation.
This class provides a virtual terminal screen that can process ANSI escape sequences and maintain the state of a terminal display. It supports features including:
- Cursor positioning and movement
- Text attributes (bold, underline, etc.)
- Color support (including 256 colors)
- Screen clearing and scrolling
- Alternate screen buffer
- Screen resizing
This implementation is based on the Apache Karaf WebConsole Gogo plugin, with adaptations to support alternate screen, resizing, and 256 colors. It follows the ECMA-48 standard for terminal control sequences.
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
ScreenTerminal
public ScreenTerminal() -
ScreenTerminal
public ScreenTerminal(int width, int height)
-
-
Method Details
-
isDirty
public boolean isDirty() -
waitDirty
- Throws:
InterruptedException
-
setDirty
protected void setDirty() -
setSize
public boolean setSize(int w, int h) -
read
-
pipe
-
write
-
dump
public void dump(long[] fullscreen, int ftop, int fleft, int fheight, int fwidth, int[] cursor) -
dump
- Throws:
InterruptedException
-
toString
-