| Modifier and Type | Field and Description |
|---|---|
| protected final boolean | |
| protected int | |
| protected int | |
| protected final Map | |
| protected final boolean | |
| protected int | |
| protected final boolean | |
| protected boolean | |
| public static boolean | DISABLE_CR
OpenJDK: When true, when the cursor is moved to column 0, carriage_return capability is not used, but rather the cursor is moved left the appropriate number of positions. |
| protected final boolean | |
| protected List | |
| protected boolean | |
| protected int | |
| protected final Terminal | |
| protected final boolean |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| protected boolean | |
| public void | |
| private int | |
| private int | |
| public boolean | Returns: true if line wrap is delayed, false otherwiseIf cursor is at right margin, don't wrap immediately. |
| protected boolean | |
| protected boolean | |
| protected boolean | |
| protected boolean | |
| private static int[] | |
| protected void | |
| protected int | |
| protected boolean | |
| pack-priv void | |
| pack-priv void | |
| pack-priv void | |
| public void | |
| public void | |
| public void | |
| public void | update(List<AttributedString>
the lines to display newLines, int desired cursor position - see Size.cursorPos. targetCursorPos)Update the display according to the new lines and flushes the output. |
| public void | update(List<AttributedString>
the lines to display newLines, int desired cursor position - see Size.cursorPos. targetCursorPos, boolean whether the output should be flushed or not flush)Update the display according to the new lines. |
| public void | |
| public int |
| canScroll | back to summary |
|---|---|
| protected final boolean canScroll | |
| columns | back to summary |
|---|---|
| protected int columns | |
| columns1 | back to summary |
|---|---|
| protected int columns1 | |
| cost | back to summary |
|---|---|
| protected final Map<InfoCmp. | |
| cursorDownIsNewLine | back to summary |
|---|---|
| protected final boolean cursorDownIsNewLine | |
| cursorPos | back to summary |
|---|---|
| protected int cursorPos | |
| delayedWrapAtEol | back to summary |
|---|---|
| protected final boolean delayedWrapAtEol | |
| delayLineWrap | back to summary |
|---|---|
| protected boolean delayLineWrap | |
| DISABLE_CR | back to summary |
|---|---|
| public static boolean DISABLE_CR OpenJDK: When true, when the cursor is moved to column 0, carriage_return capability is not used, but rather the cursor is moved left the appropriate number of positions. This is useful when there's something already printed on the first line (which is not specified as a prompt), for example when the user is providing an input. | |
| fullScreen | back to summary |
|---|---|
| protected final boolean fullScreen | |
| oldLines | back to summary |
|---|---|
| protected List<AttributedString> oldLines | |
| reset | back to summary |
|---|---|
| protected boolean reset | |
| rows | back to summary |
|---|---|
| protected int rows | |
| terminal | back to summary |
|---|---|
| protected final Terminal terminal | |
| wrapAtEol | back to summary |
|---|---|
| protected final boolean wrapAtEol | |
| Display | back to summary |
|---|---|
public Display(Terminal terminal, boolean fullscreen)
| |
| can | back to summary |
|---|---|
| protected boolean can(InfoCmp. | |
| clear | back to summary |
|---|---|
| public void clear() Clears the whole screen. Use this method only when using full-screen / application mode. | |
| computeCost | back to summary |
|---|---|
| private int computeCost(InfoCmp. | |
| cost | back to summary |
|---|---|
| private int cost(InfoCmp. | |
| delayLineWrap | back to summary |
|---|---|
| public boolean delayLineWrap() If cursor is at right margin, don't wrap immediately.
See
| |
| deleteChars | back to summary |
|---|---|
| protected boolean deleteChars(int nb) | |
| deleteLines | back to summary |
|---|---|
| protected boolean deleteLines(int nb) | |
| insertChars | back to summary |
|---|---|
| protected boolean insertChars(int nb) | |
| insertLines | back to summary |
|---|---|
| protected boolean insertLines(int nb) | |
| longestCommon | back to summary |
|---|---|
| private static int[] longestCommon(List<AttributedString> l1, List<AttributedString> l2) | |
| moveVisualCursorTo | back to summary |
|---|---|
| protected void moveVisualCursorTo(int targetPos, List<AttributedString> newLines) | |
| moveVisualCursorTo | back to summary |
|---|---|
| protected int moveVisualCursorTo(int i1) | |
| perform | back to summary |
|---|---|
| protected boolean perform(InfoCmp. | |
| rawPrint | back to summary |
|---|---|
| pack-priv void rawPrint(char c, int num) | |
| rawPrint | back to summary |
|---|---|
| pack-priv void rawPrint(int c) | |
| rawPrint | back to summary |
|---|---|
| pack-priv void rawPrint(AttributedString str) | |
| reset | back to summary |
|---|---|
| public void reset() | |
| resize | back to summary |
|---|---|
| public void resize(int rows, int columns) | |
| setDelayLineWrap | back to summary |
|---|---|
| public void setDelayLineWrap(boolean v) | |
| update | back to summary |
|---|---|
| public void update(List<AttributedString> newLines, int targetCursorPos) Update the display according to the new lines and flushes the output.
| |
| update | back to summary |
|---|---|
| public void update(List<AttributedString> newLines, int targetCursorPos, boolean flush) Update the display according to the new lines.
| |
| updateAnsi | back to summary |
|---|---|
| public void updateAnsi(List<String> newLines, int targetCursorPos) | |
| wcwidth | back to summary |
|---|---|
| public int wcwidth(String str) | |