public FlashTerminalServer(String host, String port, Socket flashSocket) {
// we now create a new terminal that is used for the system
// if you want to configure it please refer to the api docs
emulation = new vt320() {
/** before sending data transform it using telnet (which is sending it) */
public void write(byte[] b) {
try {
if (localecho) {
emulation.putString(new String(b) + "\r");