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 Ansia(Ansi.Attribute attribute)Ansibg(Ansi.Color color)AnsibgBright(Ansi.Color color)Ansicursor(int row, int column)Moves the cursor to row n, column m.AnsicursorDown(int y)Moves the cursor down.AnsicursorDownLine()Moves the cursor to the beginning of the line below.AnsicursorDownLine(int n)Moves the cursor to the beginning of the n-th line below.AnsicursorLeft(int x)Moves the cursor left.AnsicursorRight(int x)Moves the cursor right.AnsicursorToColumn(int x)Moves the cursor to column n.AnsicursorUp(int y)Moves the cursor up.AnsicursorUpLine()Moves the cursor to the beginning of the line above.AnsicursorUpLine(int n)Moves the cursor to the beginning of the n-th line above.AnsieraseLine()AnsieraseLine(Ansi.Erase kind)AnsieraseScreen()AnsieraseScreen(Ansi.Erase kind)Ansifg(Ansi.Color color)AnsifgBright(Ansi.Color color)Ansireset()AnsirestorCursorPosition()Deprecated.AnsirestoreCursorPosition()AnsisaveCursorPosition()AnsiscrollDown(int rows)AnsiscrollUp(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, bg, bgBrightCyan, bgBrightDefault, bgBrightGreen, bgBrightMagenta, bgBrightRed, bgBrightYellow, bgCyan, bgDefault, bgGreen, bgMagenta, bgRed, bgRgb, bgRgb, bgYellow, bold, boldOff, cursorMove, fg, fgBlack, fgBlue, fgBrightBlack, fgBrightBlue, fgBrightCyan, fgBrightDefault, fgBrightGreen, fgBrightMagenta, fgBrightRed, fgBrightYellow, fgCyan, fgDefault, fgGreen, fgMagenta, fgRed, fgRgb, 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:AnsiMoves 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:AnsiMoves 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:
cursorToColumnin 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:AnsiMoves the cursor up. If the parameter y is negative it moves the cursor down.
-
cursorRight
public Ansi cursorRight(int x)
Description copied from class:AnsiMoves the cursor right. If the parameter x is negative it moves the cursor left.- Overrides:
cursorRightin classAnsi- Parameters:
x- the number of characters to move right- Returns:
- this Ansi instance
-
cursorDown
public Ansi cursorDown(int y)
Description copied from class:AnsiMoves the cursor down. If the parameter y is negative it moves the cursor up.- Overrides:
cursorDownin classAnsi- Parameters:
y- the number of lines to move down- Returns:
- this Ansi instance
-
cursorLeft
public Ansi cursorLeft(int x)
Description copied from class:AnsiMoves the cursor left. If the parameter x is negative it moves the cursor right.- Overrides:
cursorLeftin classAnsi- Parameters:
x- the number of characters to move left- Returns:
- this Ansi instance
-
cursorDownLine
public Ansi cursorDownLine()
Description copied from class:AnsiMoves the cursor to the beginning of the line below.- Overrides:
cursorDownLinein classAnsi- Returns:
- this Ansi instance
-
cursorDownLine
public Ansi cursorDownLine(int n)
Description copied from class:AnsiMoves 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:
cursorDownLinein classAnsi- Parameters:
n- the number of lines to move the cursor- Returns:
- this Ansi instance
-
cursorUpLine
public Ansi cursorUpLine()
Description copied from class:AnsiMoves the cursor to the beginning of the line above.- Overrides:
cursorUpLinein classAnsi- Returns:
- this Ansi instance
-
cursorUpLine
public Ansi cursorUpLine(int n)
Description copied from class:AnsiMoves 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:
cursorUpLinein classAnsi- Parameters:
n- the number of lines to move the cursor- Returns:
- this Ansi instance
-
eraseScreen
public Ansi eraseScreen()
- Overrides:
eraseScreenin classAnsi
-
eraseScreen
public Ansi eraseScreen(Ansi.Erase kind)
- Overrides:
eraseScreenin classAnsi
-
eraseLine
public Ansi eraseLine(Ansi.Erase kind)
-
scrollDown
public Ansi scrollDown(int rows)
- Overrides:
scrollDownin classAnsi
-
saveCursorPosition
public Ansi saveCursorPosition()
- Overrides:
saveCursorPositionin classAnsi
-
restorCursorPosition
@Deprecated public Ansi restorCursorPosition()
Deprecated.- Overrides:
restorCursorPositionin classAnsi
-
restoreCursorPosition
public Ansi restoreCursorPosition()
- Overrides:
restoreCursorPositionin classAnsi
-
-