Package org.jline.utils
Class Status
java.lang.Object
org.jline.utils.Status
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected int
protected AttributedString
protected Display
private final AttributedString
protected List
<AttributedString> protected int
protected final boolean
protected boolean
protected final Terminal
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
private AttributedString
getBorderString
(int columns) getExistingStatus
(Terminal terminal) static Status
static Status
void
hide()
private boolean
void
redraw()
void
reset()
void
resize()
void
void
restore()
Therestore()
call is the opposite ofsuspend()
and will make the status bar be updated again.void
setBorder
(boolean border) int
size()
private int
void
suspend()
Thesuspend
method is used when a full-screen.toString()
void
update
(List<AttributedString> lines) void
update
(List<AttributedString> lines, boolean flush) Returnstrue
if the cursor may be misplaced and should be updated.
-
Field Details
-
terminal
-
supported
protected final boolean supported -
suspended
protected boolean suspended -
borderString
-
border
protected int border -
display
-
lines
-
scrollRegion
protected int scrollRegion -
ellipsis
-
-
Constructor Details
-
Status
-
-
Method Details
-
getStatus
-
getExistingStatus
-
getStatus
-
isValid
-
close
public void close() -
setBorder
public void setBorder(boolean border) -
resize
public void resize() -
resize
-
reset
public void reset() -
redraw
public void redraw() -
hide
public void hide() -
update
-
update
Returnstrue
if the cursor may be misplaced and should be updated. -
getBorderString
-
suspend
public void suspend()Thesuspend
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. -
restore
public void restore()Therestore()
call is the opposite ofsuspend()
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. -
size
public int size() -
size
-
toString
-