void cli_context_loop_suspend (cli_context_t *ctx) { if (ctx->status == CLI_ACTION_STATUS_ALIAS) { return; } if (ctx->mode == CLI_EXECUTION_MODE_SHELL) { readline_suspend (ctx); } ctx->status = CLI_ACTION_STATUS_BUSY; }
void cli_infos_loop_suspend (cli_infos_t *infos) { if (infos->status == CLI_ACTION_STATUS_ALIAS) { return; } if (infos->mode == CLI_EXECUTION_MODE_SHELL) { readline_suspend (infos); } infos->status = CLI_ACTION_STATUS_BUSY; }