public class Status extends Object
| Modifier and Type | Field and Description |
|---|---|
protected int |
border |
protected AttributedString |
borderString |
protected Display |
display |
protected List<AttributedString> |
lines |
protected int |
scrollRegion |
protected boolean |
supported |
protected boolean |
suspended |
protected org.graalvm.shadowed.org.jline.terminal.Terminal |
terminal |
| Constructor and Description |
|---|
Status(org.graalvm.shadowed.org.jline.terminal.Terminal terminal) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
static Optional<Status> |
getExistingStatus(org.graalvm.shadowed.org.jline.terminal.Terminal terminal) |
static Status |
getStatus(org.graalvm.shadowed.org.jline.terminal.Terminal terminal) |
static Status |
getStatus(org.graalvm.shadowed.org.jline.terminal.Terminal terminal,
boolean create) |
void |
hide() |
void |
redraw() |
void |
reset() |
void |
resize() |
void |
resize(org.graalvm.shadowed.org.jline.terminal.Size size) |
void |
restore()
The
restore() call is the opposite of suspend() and
will make the status bar be updated again. |
void |
setBorder(boolean border) |
int |
size() |
void |
suspend()
The
suspend method is used when a full-screen. |
String |
toString() |
void |
update(List<AttributedString> lines) |
void |
update(List<AttributedString> lines,
boolean flush)
Returns
true if the cursor may be misplaced and should
be updated. |
protected final org.graalvm.shadowed.org.jline.terminal.Terminal terminal
protected final boolean supported
protected boolean suspended
protected AttributedString borderString
protected int border
protected Display display
protected List<AttributedString> lines
protected int scrollRegion
public static Status getStatus(org.graalvm.shadowed.org.jline.terminal.Terminal terminal)
public static Optional<Status> getExistingStatus(org.graalvm.shadowed.org.jline.terminal.Terminal terminal)
public static Status getStatus(org.graalvm.shadowed.org.jline.terminal.Terminal terminal, boolean create)
public void close()
public void setBorder(boolean border)
public void resize()
public void resize(org.graalvm.shadowed.org.jline.terminal.Size size)
public void reset()
public void redraw()
public void hide()
public void update(List<AttributedString> lines)
public void update(List<AttributedString> lines, boolean flush)
true if the cursor may be misplaced and should
be updated.public void suspend()
suspend method is used when a full-screen.
If the status was not already suspended, the lines
used by the status are cleared during this call.public void restore()
restore() call is the opposite of suspend() and
will make the status bar be updated again.
If the status was suspended, the lines
used by the status will be drawn during this call.public int size()