5 void print_run_watch(const char *title, const char *pidfile, const char *format) {
6 bool running = process_runs(pidfile);
9 printf("%s", (running ? color("color_good") : color("color_bad")));
11 for (walk = format; *walk != '\0'; walk++) {
17 if (strncmp(walk+1, "title", strlen("title")) == 0) {
19 walk += strlen("title");
20 } else if (strncmp(walk+1, "status", strlen("status")) == 0) {
21 printf("%s", (running ? "yes" : "no"));
22 walk += strlen("status");
26 printf("%s", endcolor());