def METHOD_NAME(parent, console_type="telnet", current=None):
    dialog = ConsoleCommandDialog(parent, console_type=console_type, current=current)
    dialog.show()
    if dialog.exec_():
        return True, dialog.uiCommandPlainTextEdit.toPlainText().replace("\n", " ")
    return False, None