Package org.fusesource.jansi
Class Ansi.NoAnsi
java.lang.Object
org.fusesource.jansi.Ansi
org.fusesource.jansi.Ansi.NoAnsi
- All Implemented Interfaces:
Appendable
- Enclosing class:
Ansi
-
Nested Class Summary
Nested classes/interfaces inherited from class org.fusesource.jansi.Ansi
Ansi.Attribute, Ansi.Color, Ansi.Consumer, Ansi.Erase
-
Field Summary
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiona
(Ansi.Attribute attribute) bg
(int color) bg
(Ansi.Color color) bgBright
(Ansi.Color color) bgRgb
(int r, int g, int b) cursor
(int row, int column) Moves the cursor to row n, column m.cursorDown
(int y) Moves the cursor down.Moves the cursor to the beginning of the line below.cursorDownLine
(int n) Moves the cursor to the beginning of the n-th line below.cursorLeft
(int x) Moves the cursor left.cursorRight
(int x) Moves the cursor right.cursorToColumn
(int x) Moves the cursor to column n.cursorUp
(int y) Moves the cursor up.Moves the cursor to the beginning of the line above.cursorUpLine
(int n) Moves the cursor to the beginning of the n-th line above.eraseLine
(Ansi.Erase kind) eraseScreen
(Ansi.Erase kind) fg
(int color) fg
(Ansi.Color color) fgBright
(Ansi.Color color) fgRgb
(int r, int g, int b) reset()
Deprecated.scrollDown
(int rows) 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, restoreCursorPositionDEC, restoreCursorPositionSCO, saveCursorPositionDEC, saveCursorPositionSCO, setDetector, setEnabled, toString
-
Constructor Details
-
NoAnsi
public NoAnsi() -
NoAnsi
public NoAnsi(int size) -
NoAnsi
-
-
Method Details
-
fg
-
bg
-
fgBright
-
bgBright
-
fg
-
fgRgb
-
bg
-
bgRgb
-
a
-
cursor
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
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
Description copied from class:Ansi
Moves the cursor up. If the parameter y is negative it moves the cursor down. -
cursorRight
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
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
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
Description copied from class:Ansi
Moves the cursor to the beginning of the line below.- Overrides:
cursorDownLine
in classAnsi
- Returns:
- this Ansi instance
-
cursorDownLine
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
Description copied from class:Ansi
Moves the cursor to the beginning of the line above.- Overrides:
cursorUpLine
in classAnsi
- Returns:
- this Ansi instance
-
cursorUpLine
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
- Overrides:
eraseScreen
in classAnsi
-
eraseScreen
- Overrides:
eraseScreen
in classAnsi
-
eraseLine
-
eraseLine
-
scrollUp
-
scrollDown
- Overrides:
scrollDown
in classAnsi
-
saveCursorPosition
- Overrides:
saveCursorPosition
in classAnsi
-
restorCursorPosition
Deprecated.- Overrides:
restorCursorPosition
in classAnsi
-
restoreCursorPosition
- Overrides:
restoreCursorPosition
in classAnsi
-
reset
-