|
TelnetD at SF | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.wimpi.telnetd.io.TerminalIO
Class for Terminal specific I/O. It represents the layer between the application layer and the generic telnet I/O. Terminal specific I/O is achieved via pluggable terminal classes
TelnetIO,
Terminal| Field Summary | |
static int |
BACKSPACE
|
static int |
BCOLOR
|
static int |
BEL
Network Virtual Terminal Specific Keys Thats what we have to offer at least. |
static int |
BLINK
|
static int |
BLINK_OFF
|
static int |
BOLD
|
static int |
BOLD_OFF
|
static int |
BS
|
static int |
BYTEMISSING
|
static int |
CharacterUpdate
Internal UpdateType Constants |
static int |
COLORINIT
|
static int |
CR
|
static int |
DEL
|
static int |
DELETE
|
static int |
DEVICERESET
|
static int |
DOWN
|
static int |
EBOL
|
static int |
EBOS
|
static int |
EditBuffer
Internal BufferType Constants |
static int |
EEL
|
static int |
EEOL
|
static int |
EEOS
|
static int |
EES
|
static int |
ENTER
|
static int |
ESCAPE
|
static int |
FCOLOR
|
static int |
HANDLED
|
static int[] |
HOME
Terminal independent representation constants for terminal functions. |
static int |
IOERROR
|
static int |
ITALIC
|
static int |
ITALIC_OFF
|
static int |
LEFT
|
static int |
LF
|
static int |
LineEditBuffer
Internal BufferType Constants |
static int |
LineUpdate
Internal UpdateType Constants |
static int |
LINEWRAP
|
static int |
LOGOUTREQUEST
|
static int |
NOLINEWRAP
|
static int |
RESET
|
static int |
RESTORECURSOR
|
static int |
RIGHT
|
static int |
ScreenpartUpdate
Internal UpdateType Constants |
static int |
STORECURSOR
|
static int |
STYLE
|
static int |
TABULATOR
|
static int |
UNDERLINED
|
static int |
UNDERLINED_OFF
|
static int |
UNRECOGNIZED
|
static int |
UP
|
| Fields inherited from interface net.wimpi.telnetd.io.BasicTerminalIO |
BLACK, BLUE, CRLF, CYAN, GREEN, MAGENTA, RED, WHITE, YELLOW |
| Constructor Summary | |
TerminalIO(Connection con)
Constructor of the TerminalIO class. |
|
| Method Summary | |
void |
bell()
Method to write the NVT defined BEL onto the stream. |
void |
close()
Closes this BasicTerminalIO. |
boolean |
defineScrollRegion(int topmargin,
int bottommargin)
EXPERIMENTAL, not defined in the interface. |
void |
eraseLine()
Method that erases the entire actual line. |
void |
eraseScreen()
Method that erases the entire screen |
void |
eraseToBeginOfLine()
Method that erases in the actual line * from the actual cursor position to the beginning of the line. |
void |
eraseToBeginOfScreen()
Method that erases in the terminal screen * from the actual cursor postition to the beginning of the screen. |
void |
eraseToEndOfLine()
********************************************************************* Erase methods * ********************************************************************** |
void |
eraseToEndOfScreen()
Method that erases in the terminal screen * from the actual cursor position to the end of the screen. |
void |
flush()
Method to flush the Low-Level Buffer |
void |
forceBold(boolean b)
Method that forces bold as attribute for writing on the terminal |
int |
getColumns()
Method to retrieve the actual columns on the clients temrinal * screen |
int |
getRows()
Method to retrieve the actual rows on the clients terminal * screen |
Terminal |
getTerminal()
Accessor method to get the active terminal object |
void |
homeCursor()
Method that places the cursor at "home", which is defining * first Row,first Column |
boolean |
isAutoflushing()
Accessor method for the autoflushing mechanism. |
boolean |
isLineWrapping()
Tests if terminal is in linewrapping mode |
boolean |
isSignalling()
Accessor method for checking signalling attribute |
boolean |
isTerminalGeometryChanged()
Accessor Method for the terminal geometry changed flag |
void |
moveCursor(int direction,
int times)
********************************************************************* Cursor related methods * ********************************************************************** |
void |
moveDown(int times)
Convenience method to move the cursor down |
void |
moveLeft(int times)
Convenience method to move cursor to the left |
void |
moveRight(int times)
Convenience method to move cursor to the right |
void |
moveUp(int times)
Convenience method to move the cursor up |
int |
read()
Read a single character and take care for terminal function calls. |
void |
resetAttributes()
Method that resets all graphic rendition attributes for writing on the * terminal. |
void |
resetTerminal()
Resets the terminal device. |
void |
restoreCursor()
Method that restores the last Cursor position, either client-side, * or if not possible server-side |
void |
setAutoflushing(boolean b)
Mutator method for the autoflushing mechanism. |
void |
setBackgroundColor(int color)
Method that sets the background color for writing on the terminal |
void |
setBlink(boolean b)
Method that sets blink attribute for writing on the terminal |
void |
setBold(boolean b)
Method that sets bold as attribute for writing on the terminal |
void |
setCursor(int row,
int col)
Method that places the cursor on the terminal * on the given absolute position |
void |
setDefaultTerminal()
Sets the default terminal ,which will either be the negotiated one for the connection, or the systems default. |
void |
setForegroundColor(int color)
Method that sets the foreground color for writing to the terminal |
void |
setItalic(boolean b)
Method that sets italic as attribute for writing on the terminal |
void |
setLinewrapping(boolean b)
Sets the linewrapping mode |
void |
setSignalling(boolean bool)
********************************************************************* Special terminal function methods * ********************************************************************** |
void |
setTerminal(java.lang.String terminalName)
Mutator method to set the active terminal object If the String does not name a terminal we support then the vt100 is the terminal of selection automatically. |
void |
setUnderlined(boolean b)
Method that sets underlined as attribute for writing on the terminal |
void |
storeCursor()
Method that stores the actual Cursor position, either client-side, * or if not possible server-side |
void |
write(byte b)
Method that writes a raw byte to the terminal |
void |
write(char ch)
Method that writes a character to the terminal |
void |
write(java.lang.String str)
Method that writes a String to the terminal, * * @param str String that should be written to the terminal. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final int[] HOME
public static final int IOERROR
public static final int UP
public static final int DOWN
public static final int RIGHT
public static final int LEFT
public static final int STORECURSOR
public static final int RESTORECURSOR
public static final int EEOL
public static final int EBOL
public static final int EEL
public static final int EEOS
public static final int EBOS
public static final int EES
public static final int ESCAPE
public static final int BYTEMISSING
public static final int UNRECOGNIZED
public static final int ENTER
public static final int TABULATOR
public static final int DELETE
public static final int BACKSPACE
public static final int COLORINIT
public static final int HANDLED
public static final int LOGOUTREQUEST
public static final int LineUpdate
public static final int CharacterUpdate
public static final int ScreenpartUpdate
public static final int EditBuffer
public static final int LineEditBuffer
public static final int BEL
public static final int BS
public static final int DEL
public static final int CR
public static final int LF
public static final int FCOLOR
public static final int BCOLOR
public static final int STYLE
public static final int RESET
public static final int BOLD
public static final int BOLD_OFF
public static final int ITALIC
public static final int ITALIC_OFF
public static final int BLINK
public static final int BLINK_OFF
public static final int UNDERLINED
public static final int UNDERLINED_OFF
public static final int DEVICERESET
public static final int LINEWRAP
public static final int NOLINEWRAP
| Constructor Detail |
public TerminalIO(Connection con)
con - Connection the instance will be working for| Method Detail |
public int read()
throws java.io.IOException
read in interface BasicTerminalIOjava.io.IOException
public void write(byte b)
throws java.io.IOException
BasicTerminalIO
write in interface BasicTerminalIOjava.io.IOException
public void write(char ch)
throws java.io.IOException
BasicTerminalIO
write in interface BasicTerminalIOjava.io.IOException
public void write(java.lang.String str)
throws java.io.IOException
BasicTerminalIO
write in interface BasicTerminalIOjava.io.IOException
public void eraseToEndOfLine()
throws java.io.IOException
eraseToEndOfLine in interface BasicTerminalIOjava.io.IOException
public void eraseToBeginOfLine()
throws java.io.IOException
BasicTerminalIO
eraseToBeginOfLine in interface BasicTerminalIOjava.io.IOException
public void eraseLine()
throws java.io.IOException
BasicTerminalIO
eraseLine in interface BasicTerminalIOjava.io.IOException
public void eraseToEndOfScreen()
throws java.io.IOException
BasicTerminalIO
eraseToEndOfScreen in interface BasicTerminalIOjava.io.IOException
public void eraseToBeginOfScreen()
throws java.io.IOException
BasicTerminalIO
eraseToBeginOfScreen in interface BasicTerminalIOjava.io.IOException
public void eraseScreen()
throws java.io.IOException
BasicTerminalIO
eraseScreen in interface BasicTerminalIOjava.io.IOException
public void moveCursor(int direction,
int times)
throws java.io.IOException
moveCursor in interface BasicTerminalIOjava.io.IOException
public void moveLeft(int times)
throws java.io.IOException
BasicTerminalIO
moveLeft in interface BasicTerminalIOjava.io.IOException
public void moveRight(int times)
throws java.io.IOException
BasicTerminalIO
moveRight in interface BasicTerminalIOjava.io.IOException
public void moveUp(int times)
throws java.io.IOException
BasicTerminalIO
moveUp in interface BasicTerminalIOjava.io.IOException
public void moveDown(int times)
throws java.io.IOException
BasicTerminalIO
moveDown in interface BasicTerminalIOjava.io.IOException
public void setCursor(int row,
int col)
throws java.io.IOException
BasicTerminalIO
setCursor in interface BasicTerminalIOjava.io.IOException
public void homeCursor()
throws java.io.IOException
BasicTerminalIO
homeCursor in interface BasicTerminalIOjava.io.IOException
public void storeCursor()
throws java.io.IOException
BasicTerminalIO
storeCursor in interface BasicTerminalIOjava.io.IOException
public void restoreCursor()
throws java.io.IOException
BasicTerminalIO
restoreCursor in interface BasicTerminalIOjava.io.IOExceptionpublic void setSignalling(boolean bool)
setSignalling in interface BasicTerminalIOpublic boolean isSignalling()
BasicTerminalIO
isSignalling in interface BasicTerminalIO
public void bell()
throws java.io.IOException
bell in interface BasicTerminalIOjava.io.IOException
public boolean defineScrollRegion(int topmargin,
int bottommargin)
throws java.io.IOException
defineScrollRegion in interface BasicTerminalIOjava.io.IOException
public void setForegroundColor(int color)
throws java.io.IOException
BasicTerminalIO
setForegroundColor in interface BasicTerminalIOjava.io.IOException
public void setBackgroundColor(int color)
throws java.io.IOException
BasicTerminalIO
setBackgroundColor in interface BasicTerminalIOjava.io.IOException
public void setBold(boolean b)
throws java.io.IOException
BasicTerminalIO
setBold in interface BasicTerminalIOjava.io.IOExceptionpublic void forceBold(boolean b)
BasicTerminalIO
forceBold in interface BasicTerminalIO
public void setUnderlined(boolean b)
throws java.io.IOException
BasicTerminalIO
setUnderlined in interface BasicTerminalIOjava.io.IOException
public void setItalic(boolean b)
throws java.io.IOException
BasicTerminalIO
setItalic in interface BasicTerminalIOjava.io.IOException
public void setBlink(boolean b)
throws java.io.IOException
BasicTerminalIO
setBlink in interface BasicTerminalIOjava.io.IOException
public void resetAttributes()
throws java.io.IOException
BasicTerminalIO
* Note:
* This will affect all attributes. Although these selective resets are defined
* in ECMA 048 (the successor of the ANSI X3.64 standard) they are obviously not
* implemented for all attributes in standard terminal emulations.
*
resetAttributes in interface BasicTerminalIOjava.io.IOExceptionpublic boolean isAutoflushing()
isAutoflushing in interface BasicTerminalIO
public void resetTerminal()
throws java.io.IOException
BasicTerminalIO
resetTerminal in interface BasicTerminalIOjava.io.IOException
public void setLinewrapping(boolean b)
throws java.io.IOException
BasicTerminalIO
setLinewrapping in interface BasicTerminalIOjava.io.IOExceptionpublic boolean isLineWrapping()
BasicTerminalIO
isLineWrapping in interface BasicTerminalIOpublic void setAutoflushing(boolean b)
setAutoflushing in interface BasicTerminalIO
public void flush()
throws java.io.IOException
flush in interface BasicTerminalIOjava.io.IOExceptionpublic void close()
BasicTerminalIO
close in interface BasicTerminalIOpublic Terminal getTerminal()
public void setDefaultTerminal()
throws java.io.IOException
setDefaultTerminal in interface BasicTerminalIOjava.io.IOException
public void setTerminal(java.lang.String terminalName)
throws java.io.IOException
setTerminal in interface BasicTerminalIOterminalName - String that represents common terminal name
java.io.IOExceptionpublic int getRows()
BasicTerminalIO
getRows in interface BasicTerminalIOpublic int getColumns()
BasicTerminalIO
getColumns in interface BasicTerminalIOpublic boolean isTerminalGeometryChanged()
|
TelnetD at SF | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||