Package org.jline.utils
Class Status
- java.lang.Object
-
- org.jline.utils.Status
-
public class Status extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description protected int
border
protected AttributedString
borderString
protected Display
display
protected java.util.List<AttributedString>
lines
protected int
scrollRegion
protected boolean
supported
protected boolean
suspended
protected Terminal
terminal
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
static java.util.Optional<Status>
getExistingStatus(Terminal terminal)
static Status
getStatus(Terminal terminal)
static Status
getStatus(Terminal terminal, boolean create)
void
hide()
void
redraw()
void
reset()
void
resize()
void
resize(Size size)
void
restore()
Therestore()
call is the opposite ofsuspend()
and will make the status bar be updated again.void
setBorder(boolean border)
int
size()
void
suspend()
Thesuspend
method is used when a full-screen.java.lang.String
toString()
void
update(java.util.List<AttributedString> lines)
void
update(java.util.List<AttributedString> lines, boolean flush)
Returnstrue
if the cursor may be misplaced and should be updated.
-
-
-
Field Detail
-
terminal
protected final Terminal terminal
-
supported
protected final boolean supported
-
suspended
protected boolean suspended
-
borderString
protected AttributedString borderString
-
border
protected int border
-
display
protected Display display
-
lines
protected java.util.List<AttributedString> lines
-
scrollRegion
protected int scrollRegion
-
-
Constructor Detail
-
Status
public Status(Terminal terminal)
-
-
Method Detail
-
close
public void close()
-
setBorder
public void setBorder(boolean border)
-
resize
public void resize()
-
resize
public void resize(Size size)
-
reset
public void reset()
-
redraw
public void redraw()
-
hide
public void hide()
-
update
public void update(java.util.List<AttributedString> lines)
-
update
public void update(java.util.List<AttributedString> lines, boolean flush)
Returnstrue
if the cursor may be misplaced and should be updated.
-
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()
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-