2 * On-screen Display Client
4 * (c) 2010 Martin Mares <mj@ucw.cz>
12 #include <X11/Xatom.h>
17 static struct osd_msg *msg;
23 Usage: osdc [--<property>=<value> | <message>]*\n\
25 Either <value> or <message> can be `-' for standard input.\n\
31 parse_stdin(char *key)
34 while (fgets(line, sizeof(line), stdin))
36 char *nl = strchr(line, '\n');
39 osd_add_line(msg, key, line);
43 int main(int argc, char **argv)
48 for (int i=1; i<argc; i++)
51 if (more_opts && arg[0] == '-')
60 if (!strcmp(arg, "help"))
62 char *sep = strchr(arg, '=');
66 if (!strcmp(sep, "-"))
69 osd_add_line(msg, arg, sep);
78 osd_add_line(msg, NULL, arg);