Package org.fusesource.jansi
Class Ansi.NoAnsi
- java.lang.Object
-
- org.fusesource.jansi.Ansi
-
- org.fusesource.jansi.Ansi.NoAnsi
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.fusesource.jansi.Ansi
Ansi.Attribute, Ansi.Color, Ansi.Consumer, Ansi.Erase
-
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description Ansi
a(Ansi.Attribute attribute)
Ansi
bg(int color)
Ansi
bg(Ansi.Color color)
Ansi
bgBright(Ansi.Color color)
Ansi
bgRgb(int r, int g, int b)
Ansi
cursor(int row, int column)
Moves the cursor to row n, column m.Ansi
cursorDown(int y)
Moves the cursor down.Ansi
cursorDownLine()
Moves the cursor to the beginning of the line below.Ansi
cursorDownLine(int n)
Moves the cursor to the beginning of the n-th line below.Ansi
cursorLeft(int x)
Moves the cursor left.Ansi
cursorRight(int x)
Moves the cursor right.Ansi
cursorToColumn(int x)
Moves the cursor to column n.Ansi
cursorUp(int y)
Moves the cursor up.Ansi
cursorUpLine()
Moves the cursor to the beginning of the line above.Ansi
cursorUpLine(int n)
Moves the cursor to the beginning of the n-th line above.Ansi
eraseLine()
Ansi
eraseLine(Ansi.Erase kind)
Ansi
eraseScreen()
Ansi
eraseScreen(Ansi.Erase kind)
Ansi
fg(int color)
Ansi
fg(Ansi.Color color)
Ansi
fgBright(Ansi.Color color)
Ansi
fgRgb(int r, int g, int b)
Ansi
reset()
Ansi
restorCursorPosition()
Deprecated.Ansi
restoreCursorPosition()
Ansi
saveCursorPosition()
Ansi
scrollDown(int rows)
Ansi
scrollUp(int rows)
-
Methods inherited from class org.fusesource.jansi.Ansi
a, a, a, a, a, a, a, a, a, a, a, a, a, ansi, ansi, ansi, append, append, append, apply, bgBrightCyan, bgBrightDefault, bgBrightGreen, bgBrightMagenta, bgBrightRed, bgBrightYellow, bgCyan, bgDefault, bgGreen, bgMagenta, bgRed, bgRgb, bgYellow, bold, boldOff, cursorMove, fgBlack, fgBlue, fgBrightBlack, fgBrightBlue, fgBrightCyan, fgBrightDefault, fgBrightGreen, fgBrightMagenta, fgBrightRed, fgBrightYellow, fgCyan, fgDefault, fgGreen, fgMagenta, fgRed, fgRgb, fgYellow, format, isDetected, isEnabled, newline, render, render, setDetector, setEnabled, toString
-
-
-
-
Method Detail
-
fg
public Ansi fg(Ansi.Color color)
-
bg
public Ansi bg(Ansi.Color color)
-
fgBright
public Ansi fgBright(Ansi.Color color)
-
bgBright
public Ansi bgBright(Ansi.Color color)
-
a
public Ansi a(Ansi.Attribute attribute)
-
cursor
public Ansi cursor(int row, int column)
Description copied from class:Ansi
Moves the cursor to row n, column m. The values are 1-based. Any values less than 1 are mapped to 1.
-
cursorToColumn
public Ansi cursorToColumn(int x)
Description copied from class:Ansi
Moves the cursor to column n. The parameter n is 1-based. If n is less than 1 it is moved to the first column.- Overrides:
cursorToColumn
in classAnsi
- Parameters:
x
- the index (1-based) of the column to move to- Returns:
- this Ansi instance
-
cursorUp
public Ansi cursorUp(int y)
Description copied from class:Ansi
Moves the cursor up. If the parameter y is negative it moves the cursor down.
-
cursorRight
public Ansi cursorRight(int x)
Description copied from class:Ansi
Moves the cursor right. If the parameter x is negative it moves the cursor left.- Overrides:
cursorRight
in classAnsi
- Parameters:
x
- the number of characters to move right- Returns:
- this Ansi instance
-
cursorDown
public Ansi cursorDown(int y)
Description copied from class:Ansi
Moves the cursor down. If the parameter y is negative it moves the cursor up.- Overrides:
cursorDown
in classAnsi
- Parameters:
y
- the number of lines to move down- Returns:
- this Ansi instance
-
cursorLeft
public Ansi cursorLeft(int x)
Description copied from class:Ansi
Moves the cursor left. If the parameter x is negative it moves the cursor right.- Overrides:
cursorLeft
in classAnsi
- Parameters:
x
- the number of characters to move left- Returns:
- this Ansi instance
-
cursorDownLine
public Ansi cursorDownLine()
Description copied from class:Ansi
Moves the cursor to the beginning of the line below.- Overrides:
cursorDownLine
in classAnsi
- Returns:
- this Ansi instance
-
cursorDownLine
public Ansi cursorDownLine(int n)
Description copied from class:Ansi
Moves the cursor to the beginning of the n-th line below. If the parameter n is negative it moves the cursor to the beginning of the n-th line above.- Overrides:
cursorDownLine
in classAnsi
- Parameters:
n
- the number of lines to move the cursor- Returns:
- this Ansi instance
-
cursorUpLine
public Ansi cursorUpLine()
Description copied from class:Ansi
Moves the cursor to the beginning of the line above.- Overrides:
cursorUpLine
in classAnsi
- Returns:
- this Ansi instance
-
cursorUpLine
public Ansi cursorUpLine(int n)
Description copied from class:Ansi
Moves the cursor to the beginning of the n-th line above. If the parameter n is negative it moves the cursor to the beginning of the n-th line below.- Overrides:
cursorUpLine
in classAnsi
- Parameters:
n
- the number of lines to move the cursor- Returns:
- this Ansi instance
-
eraseScreen
public Ansi eraseScreen()
- Overrides:
eraseScreen
in classAnsi
-
eraseScreen
public Ansi eraseScreen(Ansi.Erase kind)
- Overrides:
eraseScreen
in classAnsi
-
eraseLine
public Ansi eraseLine(Ansi.Erase kind)
-
scrollDown
public Ansi scrollDown(int rows)
- Overrides:
scrollDown
in classAnsi
-
saveCursorPosition
public Ansi saveCursorPosition()
- Overrides:
saveCursorPosition
in classAnsi
-
restorCursorPosition
@Deprecated public Ansi restorCursorPosition()
Deprecated.- Overrides:
restorCursorPosition
in classAnsi
-
restoreCursorPosition
public Ansi restoreCursorPosition()
- Overrides:
restoreCursorPosition
in classAnsi
-
-