public class JLineProcessor extends Object implements Runnable, ConsoleDriver
| Constructor and Description |
|---|
JLineProcessor(boolean ansi,
Shell shell,
jline.console.ConsoleReader reader,
PrintStream out) |
JLineProcessor(boolean ansi,
Shell shell,
jline.console.ConsoleReader reader,
PrintStream out,
String lineSeparator) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
closed() |
void |
cls()
Clear screen.
|
void |
flush()
Flush output.
|
int |
getHeight()
Returns the term height in chars.
|
String |
getProperty(String name)
Retrieves the value of a property specified by this TermIO
|
int |
getWidth()
Returns the term width in chars.
|
void |
interrupt() |
boolean |
moveLeft()
Move the cursor left.
|
boolean |
moveRight(char c)
Move the cursor right.
|
boolean |
releaseAlternateBuffer()
Release control of the alternate buffer.
|
void |
run() |
boolean |
takeAlternateBuffer()
Take control of the alternate buffer.
|
void |
write(char c)
Write a char.
|
void |
write(CharSequence s)
Write a string.
|
void |
write(CharSequence s,
int start,
int end)
Write a string.
|
void |
write(Style d)
Write a style.
|
void |
writeCRLF()
Write a CRLF.
|
void |
writeDel()
Delete the char under the cursor.
|
public JLineProcessor(boolean ansi,
Shell shell,
jline.console.ConsoleReader reader,
PrintStream out)
public JLineProcessor(boolean ansi,
Shell shell,
jline.console.ConsoleReader reader,
PrintStream out,
String lineSeparator)
public void interrupt()
public void closed()
throws InterruptedException
InterruptedExceptionpublic int getWidth()
ConsoleDrivergetWidth in interface ConsoleDriverpublic int getHeight()
ConsoleDrivergetHeight in interface ConsoleDriverpublic String getProperty(String name)
ConsoleDrivergetProperty in interface ConsoleDrivername - the name of the propertypublic boolean takeAlternateBuffer()
throws IOException
ConsoleDriverConsoleDriver.flush() method
is invoked.takeAlternateBuffer in interface ConsoleDriverIOExceptionpublic boolean releaseAlternateBuffer()
throws IOException
ConsoleDriverConsoleDriver.flush() method
is invoked.releaseAlternateBuffer in interface ConsoleDriverIOExceptionpublic void flush()
throws IOException
ConsoleDriverflush in interface ConsoleDriverIOException - any io exceptionpublic void write(CharSequence s) throws IOException
ConsoleDriverwrite in interface ConsoleDrivers - the string to writeIOException - any io exceptionpublic void write(CharSequence s, int start, int end) throws IOException
ConsoleDriverwrite in interface ConsoleDrivers - the string to writestart - the index of the first charend - the index of the last charIOException - any io exceptionpublic void write(char c)
throws IOException
ConsoleDriverwrite in interface ConsoleDriverc - the char to writeIOException - any io exceptionpublic void write(Style d) throws IOException
ConsoleDriverwrite in interface ConsoleDriverd - the data to writeIOException - any io exceptionpublic void writeDel()
throws IOException
ConsoleDriverwriteDel in interface ConsoleDriverIOException - any io exceptionpublic void writeCRLF()
throws IOException
ConsoleDriverwriteCRLF in interface ConsoleDriverIOException - any io exceptionpublic void cls()
throws IOException
ConsoleDrivercls in interface ConsoleDriverIOException - any io exceptionpublic boolean moveRight(char c)
throws IOException
ConsoleDrivermoveRight in interface ConsoleDriverc - the char skipped overIOException - any io exceptionpublic boolean moveLeft()
throws IOException
ConsoleDrivermoveLeft in interface ConsoleDriverIOException - any io exceptionpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableIOExceptionCopyright © 2015 eXo Platform SAS. All Rights Reserved.