|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.crsh.ssh.term.SSHIO
public class SSHIO
| Field Summary | |
|---|---|
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 Summary | |
|---|---|
SSHIO(CRaSHCommand command)
|
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
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 Logger log
private final Reader reader
private final Writer writer
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
| Constructor Detail |
|---|
public SSHIO(CRaSHCommand command)
| Method Detail |
|---|
public int read()
throws IOException
TermIO
read in interface TermIOIOException - any io exceptionpublic int getWidth()
TermIO
getWidth in interface TermIOpublic int getHeight()
TermIO
getHeight in interface TermIOpublic String getProperty(String name)
TermIO
getProperty in interface TermIOname - the name of the property
public boolean takeAlternateBuffer()
throws IOException
TermIOTermIO.flush() method
is invoked.
takeAlternateBuffer in interface TermIOIOException
public boolean releaseAlternateBuffer()
throws IOException
TermIOTermIO.flush() method
is invoked.
releaseAlternateBuffer in interface TermIOIOExceptionpublic CodeType decode(int code)
TermIO
decode in interface TermIOcode - the code
public void close()
close in interface Closeable
public void flush()
throws IOException
TermIO
flush in interface TermIOIOException - any io exception
public void write(CharSequence s)
throws IOException
TermIO
write in interface TermIOs - the string to write
IOException - any io exception
public void write(char c)
throws IOException
TermIO
write in interface TermIOc - the char to write
IOException - any io exception
public void write(Style d)
throws IOException
TermIO
write in interface TermIOd - the data to write
IOException - any io exception
public void writeDel()
throws IOException
TermIO
writeDel in interface TermIOIOException - any io exception
public void writeCRLF()
throws IOException
TermIO
writeCRLF in interface TermIOIOException - any io exception
public boolean moveRight(char c)
throws IOException
TermIO
moveRight in interface TermIOc - the char skipped over
IOException - any io exception
public boolean moveLeft()
throws IOException
TermIO
moveLeft in interface TermIOIOException - any io exception
public void cls()
throws IOException
TermIO
cls in interface TermIOIOException - any io exception
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||