stamp.core
Class Terminal

java.lang.Object
  |
  +--stamp.core.Terminal

public class Terminal
extends Object

Receive bytes from the debugger serial interface.


Constructor Summary
Terminal()
           
 
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.
 
Methods inherited from class java.lang.Object
equals
 

Constructor Detail

Terminal

public Terminal()
Method Detail

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.