static void display_normal (ply_boot_splash_plugin_t *plugin) { pause_views (plugin); if (plugin->state != PLY_BOOT_SPLASH_DISPLAY_NORMAL) hide_prompt (plugin); plugin->state = PLY_BOOT_SPLASH_DISPLAY_NORMAL; start_animation (plugin); redraw_views (plugin); unpause_views (plugin); }
static void print(client_t *c, const char *format, ...) { va_list ap; hide_prompt(c); va_start(ap, format); vfprintf(stdout, format, ap); fputc('\n', stdout); fflush(stdout); va_end(ap); show_prompt(c); }
static void process_input(brl_t *brl, const char *input, void *user_data) { client_t *c = (client_t *)user_data; int len = input ? strlen(input) + 1 : 0; char buf[len], *args[64]; int narg; if (len > 1) { brl_add_history(brl, input); hide_prompt(c); strcpy(buf, input); narg = split_input(buf, MRP_ARRAY_SIZE(args), args); if (narg > 0) execute_user_command(c, narg, &args[0]); else printf("failed to parse input '%s'\n", input); show_prompt(c); } }