stamp.core
Class Terminal
java.lang.Object
|
+--stamp.core.Terminal
- public class Terminal
- extends Object
Receive bytes from the debugger serial interface.
Method Summary |
static boolean |
byteAvailable()
Checks if a byte is available into the terminal buffer. |
static char |
getChar()
Returns the last character sent from the terminal. |
Terminal
public Terminal()
getChar
public static char getChar()
- Returns the last character sent from the terminal. If there are no bytes
waiting then blocks until a byte is available.
- Returns:
- the last received character.
byteAvailable
public static boolean byteAvailable()
- Checks if a byte is available into the terminal buffer. If at least
one byte is available
true
is returned.