|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
An interface for a terminal.
Method Summary | |
Device |
getDevice()
Return the device of the terminal. |
java.lang.String |
getName()
Return the name of the terminal. |
char |
getNextChar()
Get the next character typed in. |
boolean |
isEmpty()
Return true if there is no character typed. |
char |
readChar()
Return a typed character if available. |
void |
writeChar(char c)
Write a character to the terminal. |
Method Detail |
public java.lang.String getName()
public Device getDevice()
Device
return null
.public boolean isEmpty()
true
if there is no character typed.public char readChar()
'\0'
is returned. Note that an available character
can be read only once.getNextChar
public char getNextChar()
readChar
public void writeChar(char c)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |