public class JLineTextStyler
extends Object
Utilities to handle ANSI escape sequences with JLine.
Created: 2017. 5. 21.
- Since:
- 4.1.0
-
Constructor Summary
Constructors
-
Method Summary
static org.jline.utils.AttributedCharSequence
static org.jline.utils.AttributedCharSequence
parse(String input,
org.jline.utils.AttributedStyle defaultStyle)
parseAsString(org.jline.utils.AttributedStyle defaultStyle,
String input,
org.jline.terminal.Terminal terminal)
static org.jline.utils.AttributedStyle
static org.jline.utils.AttributedStyle
style(org.jline.utils.AttributedStyle baseStyle,
String... styles)
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
JLineTextStyler
public JLineTextStyler()
-
Method Details
-
parse
public static org.jline.utils.AttributedCharSequence parse(String input)
-
parse
public static org.jline.utils.AttributedCharSequence parse(String input,
org.jline.utils.AttributedStyle defaultStyle)
-
parseAsString
public static String parseAsString(String input,
org.jline.terminal.Terminal terminal)
-
parseAsString
public static String parseAsString(org.jline.utils.AttributedStyle defaultStyle,
String input,
org.jline.terminal.Terminal terminal)
-
style
public static org.jline.utils.AttributedStyle style(String... styles)
-
style
public static org.jline.utils.AttributedStyle style(org.jline.utils.AttributedStyle baseStyle,
String... styles)