File tree 3 files changed +19
-2
lines changed
jansi/src/main/java/org/fusesource/jansi
3 files changed +19
-2
lines changed Original file line number Diff line number Diff line change 19
19
import java .util .concurrent .Callable ;
20
20
21
21
/**
22
- * Provides a fluent API for generating ANSI escape sequences.
22
+ * Provides a fluent API for generating
23
+ * <a href="https://en.wikipedia.org/wiki/ANSI_escape_code#CSI_sequences">ANSI escape sequences</a>.
23
24
*
24
25
* @author <a href="http://hiramchirino.com">Hiram Chirino</a>
25
26
* @since 1.0
@@ -29,6 +30,9 @@ public class Ansi {
29
30
private static final char FIRST_ESC_CHAR = 27 ;
30
31
private static final char SECOND_ESC_CHAR = '[' ;
31
32
33
+ /**
34
+ * <a href="https://en.wikipedia.org/wiki/ANSI_escape_code#Colors">ANSI 8 colors</a> for fluent API
35
+ */
32
36
public enum Color {
33
37
BLACK (0 , "BLACK" ),
34
38
RED (1 , "RED" ),
@@ -74,6 +78,11 @@ public int bgBright() {
74
78
}
75
79
}
76
80
81
+ /**
82
+ * Display attributes, also know as
83
+ * <a href="https://en.wikipedia.org/wiki/ANSI_escape_code#SGR_(Select_Graphic_Rendition)_parameters">SGR
84
+ * (Select Graphic Rendition) parameters</a>.
85
+ */
77
86
public enum Attribute {
78
87
RESET (0 , "RESET" ),
79
88
INTENSITY_BOLD (1 , "INTENSITY_BOLD" ),
@@ -113,6 +122,12 @@ public int value() {
113
122
114
123
}
115
124
125
+ /**
126
+ * ED (Erase in Display) / EL (Erase in Line) parameter (see
127
+ * <a href="https://en.wikipedia.org/wiki/ANSI_escape_code#CSI_sequences">CSI sequence J and K</a>)
128
+ * @see Ansi#eraseScreen(Erase)
129
+ * @see Ansi#eraseLine(Erase)
130
+ */
116
131
public enum Erase {
117
132
FORWARD (0 , "FORWARD" ),
118
133
BACKWARD (1 , "BACKWARD" ),
Original file line number Diff line number Diff line change 28
28
/**
29
29
* Provides consistent access to an ANSI aware console PrintStream or an ANSI codes stripping PrintStream
30
30
* if not on a terminal (see
31
- * <a href="http://fusesource.github.io/jansi/documentation/native-api/index.html?org/fusesource/jansi/internal/CLibrary.html">Jansi native isatty(int)</a>).
31
+ * <a href="http://fusesource.github.io/jansi/documentation/native-api/index.html?org/fusesource/jansi/internal/CLibrary.html">Jansi native
32
+ * CLibrary isatty(int)</a>).
32
33
*
33
34
* @author <a href="http://hiramchirino.com">Hiram Chirino</a>
34
35
* @since 1.0
Original file line number Diff line number Diff line change 24
24
*
25
25
* @author Hervé Boutemy
26
26
* @since 1.17
27
+ * @see #filter(int)
27
28
*/
28
29
public class FilterPrintStream extends PrintStream
29
30
{
You can’t perform that action at this time.
0 commit comments