Copyright (C) 2009, Progress Software Corporation and/or its subsidiaries or affiliates. All rights reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
| Modifiers | Name | Description |
|---|---|---|
static enum |
Ansi.Attribute |
|
static enum |
Ansi.Color |
|
static enum |
Ansi.Erase |
| Modifiers | Name | Description |
|---|---|---|
static java.lang.String |
DISABLE |
| Type | Name and description |
|---|---|
java.lang.Object |
Ansi() |
java.lang.Object |
Ansi(Ansi parent) |
java.lang.Object |
Ansi(int size) |
java.lang.Object |
Ansi(java.lang.StringBuilder builder) |
Ansi |
a(Ansi.Attribute attribute) |
Ansi |
a(java.lang.String value) |
Ansi |
a(boolean value) |
Ansi |
a(char value) |
Ansi |
a(char[] value, int offset, int len) |
Ansi |
a(char[] value) |
Ansi |
a(java.lang.CharSequence value, int start, int end) |
Ansi |
a(java.lang.CharSequence value) |
Ansi |
a(double value) |
Ansi |
a(float value) |
Ansi |
a(int value) |
Ansi |
a(long value) |
Ansi |
a(java.lang.Object value) |
Ansi |
a(java.lang.StringBuffer value) |
static Ansi |
ansi() |
static Ansi |
ansi(java.lang.StringBuilder builder) |
static Ansi |
ansi(int size) |
Ansi |
bg(Ansi.Color color) |
Ansi |
bgBright(Ansi.Color color) |
Ansi |
bold() |
Ansi |
boldOff() |
Ansi |
cursor(int x, int y) |
Ansi |
cursorDown(int y) |
Ansi |
cursorDownLine() |
Ansi |
cursorDownLine(int n) |
Ansi |
cursorLeft(int x) |
Ansi |
cursorRight(int x) |
Ansi |
cursorToColumn(int x) |
Ansi |
cursorUp(int y) |
Ansi |
cursorUpLine() |
Ansi |
cursorUpLine(int n) |
Ansi |
eraseLine() |
Ansi |
eraseLine(Ansi.Erase kind) |
Ansi |
eraseScreen() |
Ansi |
eraseScreen(Ansi.Erase kind) |
Ansi |
fg(Ansi.Color color) |
Ansi |
fgBright(Ansi.Color color) |
Ansi |
format(java.lang.String pattern, java.lang.Object... args) |
static boolean |
isDetected() |
static boolean |
isEnabled() |
Ansi |
newline() |
Ansi |
render(java.lang.String text)Uses the AnsiRenderer to generate the ANSI escape sequences for the supplied text. |
Ansi |
render(java.lang.String text, java.lang.Object... args)String formats and renders the supplied arguments. |
Ansi |
reset() |
Ansi |
restorCursorPosition() |
Ansi |
restoreCursorPosition() |
Ansi |
saveCursorPosition() |
Ansi |
scrollDown(int rows) |
Ansi |
scrollUp(int rows) |
static void |
setDetector(java.util.concurrent.Callable<java.lang.Boolean> detector) |
static void |
setEnabled(boolean flag) |
java.lang.String |
toString() |
| Methods inherited from class | Name |
|---|---|
class java.lang.Object |
java.lang.Object#wait(long, int), java.lang.Object#wait(long), java.lang.Object#wait(), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll() |
Uses the AnsiRenderer to generate the ANSI escape sequences for the supplied text.
text - textString formats and renders the supplied arguments. Uses the AnsiRenderer to generate the ANSI escape sequences.
text - formatargs - arguments