aboutsummaryrefslogtreecommitdiffstats
path: root/lcd4linux.c
diff options
context:
space:
mode:
authorvolker <volker@3ae390bd-cb1e-0410-b409-cd5a39f66f1f>2009-11-20 14:49:34 +0000
committervolker <volker@3ae390bd-cb1e-0410-b409-cd5a39f66f1f>2009-11-20 14:49:34 +0000
commitcd705f84010afaa24ec457a90de61f2b4635ea69 (patch)
tree45e3f2bf5c912c48130c5830168b296fe56b2ebf /lcd4linux.c
parent82a0af2c3007a9ebcbae4c1af4cc40765b1f5c96 (diff)
downloadlcd4linux-cd705f84010afaa24ec457a90de61f2b4635ea69.tar.gz
special commandline parameters for X11
git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@1067 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
Diffstat (limited to 'lcd4linux.c')
-rw-r--r--lcd4linux.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/lcd4linux.c b/lcd4linux.c
index bf17f5e..7a48c7c 100644
--- a/lcd4linux.c
+++ b/lcd4linux.c
@@ -91,6 +91,14 @@ static void usage(void)
printf(" -F do not fork and detach (run in foreground)\n");
printf(" -o <output-file> write picture to file (raster driver only)\n");
printf(" -q suppress startup and exit splash screen\n");
+#ifdef WITH_X11
+ printf("special X11 options:\n");
+ printf(" -display <X11 display name> preceeds X connection given in $DISPLAY\n");
+ printf(" -synchronous use synchronized communication with X server (for debugging)\n");
+ printf("\n");
+ printf("\n");
+ printf("\n");
+#endif
}
static void interactive_mode(void)
@@ -222,6 +230,13 @@ int main(int argc, char *argv[])
running_foreground = 0;
running_background = 0;
+#ifdef WITH_X11
+ drv_X11_parseArgs(&argc, argv);
+ if (argc != thread_argc) {
+ /* info() will not work here because verbose level is not known */
+ printf("recognized special X11 parameters\n");
+ }
+#endif
while ((c = getopt(argc, argv, "c:Ff:hilo:qvp:")) != EOF) {
switch (c) {