Exemplo n.º 1
0
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;
}
Exemplo n.º 2
0
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;
}