2 * On-screen Display Client
4 * (c) 2010 Martin Mares <mj@ucw.cz>
12 #include <X11/Xatom.h>
16 static struct osd_msg *msg;
22 Usage: osdc [--<property>=<value> | <message>]*\n\
24 Either <value> or <message> can be `-' for standard input.\n\
30 parse_stdin(char *key)
33 while (fgets(line, sizeof(line), stdin))
35 char *nl = strchr(line, '\n');
38 osd_add_line(msg, key, line);
42 int main(int argc, char **argv)
47 for (int i=1; i<argc; i++)
50 if (more_opts && arg[0] == '-')
59 if (!strcmp(arg, "help"))
61 char *sep = strchr(arg, '=');
65 if (!strcmp(sep, "-"))
68 osd_add_line(msg, arg, sep);
77 osd_add_line(msg, NULL, arg);