private void addToTerminal(String data){
        text += data+"\n"+device.NodeProtocolStack.getParentNodeName();
        if(current_mode.conf_mode == CommandInterface.CONF_MODE){
            text += "(config";
            switch(interface_mode){
                case IF_MODE: text += "-if"; break;
                case ACL_MODE: text += "-ext-nacl"; break;
                default:
            }
            text += ")";
        }
        text += "# ";
        terminal.setText(text);
    }