public void processEscape() throws IOException {
        byte c = getByte();
        switch (c) {
            case 'R': remoteServerOut.write((console.readLine() + "\n").getBytes());
                      remoteServerOut.flush();
                      break;
            case 'P': remoteServerOut.write((console.readPassword() + "\n").getBytes()); 
                      remoteServerOut.flush();
                      break;
            case 'F': console.setTextAttributes(new TextAttributes(readColor(), console.getTextAttributes().getBackground())); break;
            case 'B': console.setTextAttributes(new TextAttributes(console.getTextAttributes().getForeground(), readColor())); break;
            case ESCAPE: System.out.write(ESCAPE);
        }
    }