Create the base UI in command mode.

def ui_main(fmt_table, node_dict):
    """Create the base UI in command mode."""
    cmd_funct = {"quit": False,
                 "run": node_cmd,
                 "stop": node_cmd,
                 "connect": node_cmd,
                 "details": node_cmd,
                 "update": True}
    ui_print("\033[?25l")  # cursor off
    print("{}\n".format(fmt_table))
    sys.stdout.flush()
    # refresh_main values:
    #   None = loop main-cmd, True = refresh-list, False = exit-program
    refresh_main = None
    while refresh_main is None:
        cmd_name = get_user_cmd(node_dict)
        if callable(cmd_funct[cmd_name]):
            refresh_main = cmd_funct[cmd_name](cmd_name, node_dict)
        else:
            refresh_main = cmd_funct[cmd_name]
    if cmd_name != "connect" and refresh_main:
        ui_clear(len(node_dict) + 2)
    return refresh_main