| Modifier and Type | Field and Description |
|---|---|
private static int |
BACKWARD_WORD
.
|
(package private) AtomicBoolean |
closed
.
|
private CRaSHCommand |
command
.
|
private static int |
DOWN
Copied from net.wimpi.telnetd.io.TerminalIO.
|
private static int |
FORWARD_WORD
.
|
private static int |
HANDLED
Copied from net.wimpi.telnetd.io.TerminalIO.
|
private static int |
LEFT
Copied from net.wimpi.telnetd.io.TerminalIO.
|
private static Logger |
log
.
|
private Reader |
reader
.
|
private static int |
RIGHT
Copied from net.wimpi.telnetd.io.TerminalIO.
|
private int |
status
.
|
private static int |
STATUS_NORMAL
.
|
private static int |
STATUS_READ_ESC_1
.
|
private static int |
STATUS_READ_ESC_2
.
|
private static int |
UP
Copied from net.wimpi.telnetd.io.TerminalIO.
|
private boolean |
useAlternate
.
|
private Writer |
writer
.
|
| Constructor and Description |
|---|
SSHIO(CRaSHCommand command) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
cls()
Clear screen.
|
CodeType |
decode(int code)
Decode the intput value.
|
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.
|
boolean |
moveLeft()
Move the cursor left.
|
boolean |
moveRight(char c)
Move the cursor right.
|
int |
read()
Reads an input value.
|
boolean |
releaseAlternateBuffer()
Release control of the alternate buffer.
|
boolean |
takeAlternateBuffer()
Take control of the alternate buffer.
|
void |
write(char c)
Write a char.
|
void |
write(CharSequence s)
Write a string.
|
void |
write(Style d)
Write a style.
|
void |
writeCRLF()
Write a CRLF.
|
void |
writeDel()
Delete the char under the cursor.
|
private static final int UP
private static final int DOWN
private static final int RIGHT
private static final int LEFT
private static final int HANDLED
private static final int BACKWARD_WORD
private static final int FORWARD_WORD
private static final int STATUS_NORMAL
private static final int STATUS_READ_ESC_1
private static final int STATUS_READ_ESC_2
private int status
private final CRaSHCommand command
final AtomicBoolean closed
private boolean useAlternate
public SSHIO(CRaSHCommand command)
public int read() throws IOException
TermIOread in interface TermIOIOException - any io exceptionpublic int getWidth()
TermIOpublic int getHeight()
TermIOpublic String getProperty(String name)
TermIOgetProperty in interface TermIOname - the name of the propertypublic boolean takeAlternateBuffer() throws IOException
TermIOTermIO.flush() method
is invoked.takeAlternateBuffer in interface TermIOIOExceptionpublic boolean releaseAlternateBuffer() throws IOException
TermIOTermIO.flush() method
is invoked.releaseAlternateBuffer in interface TermIOIOExceptionpublic CodeType decode(int code)
TermIOpublic void close()
close in interface Closeableclose in interface AutoCloseablepublic void flush() throws IOException
TermIOflush in interface TermIOIOException - any io exceptionpublic void write(CharSequence s) throws IOException
TermIOwrite in interface TermIOs - the string to writeIOException - any io exceptionpublic void write(char c) throws IOException
TermIOwrite in interface TermIOc - the char to writeIOException - any io exceptionpublic void write(Style d) throws IOException
TermIOwrite in interface TermIOd - the data to writeIOException - any io exceptionpublic void writeDel() throws IOException
TermIOwriteDel in interface TermIOIOException - any io exceptionpublic void writeCRLF() throws IOException
TermIOwriteCRLF in interface TermIOIOException - any io exceptionpublic boolean moveRight(char c) throws IOException
TermIOmoveRight in interface TermIOc - the char skipped overIOException - any io exceptionpublic boolean moveLeft() throws IOException
TermIOmoveLeft in interface TermIOIOException - any io exceptionpublic void cls() throws IOException
TermIOcls in interface TermIOIOException - any io exceptionCopyright © 2013 eXo Platform SAS. All Rights Reserved.