Class JLineTerminal
java.lang.Object
com.aspectran.shell.jline.console.JLineTerminal
Console I/O implementation that supports JLine.
Created: 2017. 3. 4.
-
Nested Class Summary
-
Constructor Summary
ConstructorDescriptionJLineTerminal
(ShellConsole console) JLineTerminal
(ShellConsole console, String encoding) -
Method Summary
Modifier and TypeMethodDescriptionvoid
applyStyle
(String... styles) void
void
void
void
flush()
org.jline.reader.LineReader
org.jline.reader.LineReader
protected JLineTerminal.Style
getStyle()
org.jline.terminal.Terminal
boolean
hasStyle()
protected boolean
isDumb()
protected boolean
boolean
void
void
setCommandHistoryFile
(String historyFile) protected void
setStyle
(JLineTerminal.Style style) protected String
toAnsi
(String str, JLineTerminal.Style style) void
void
writeAbove
(String str) void
-
Constructor Details
-
JLineTerminal
- Throws:
IOException
-
JLineTerminal
- Throws:
IOException
-
-
Method Details
-
getTerminal
public org.jline.terminal.Terminal getTerminal() -
getEncoding
-
isDumb
protected boolean isDumb() -
isDumbColor
protected boolean isDumbColor() -
getReader
public org.jline.reader.LineReader getReader() -
getCommandReader
public org.jline.reader.LineReader getCommandReader() -
getCommandCompleter
-
getCommandHighlighter
-
setCommandHistoryFile
-
getCommandHistory
-
clearCommandHistory
public void clearCommandHistory() -
clearScreen
public void clearScreen() -
clearLine
public void clearLine() -
redrawLine
public void redrawLine() -
getOutput
-
getWriter
-
isReading
public boolean isReading() -
hasStyle
public boolean hasStyle() -
getStyle
-
setStyle
-
applyStyle
-
toAnsi
-
toAnsi
-
write
-
writeLine
public void writeLine() -
writeAbove
-
flush
public void flush()
-