diff options
Diffstat (limited to 'lcd4linux.c')
-rw-r--r-- | lcd4linux.c | 21 |
1 files changed, 11 insertions, 10 deletions
diff --git a/lcd4linux.c b/lcd4linux.c index 0d48d36..3d9d55b 100644 --- a/lcd4linux.c +++ b/lcd4linux.c @@ -1,4 +1,4 @@ -/* $Id: lcd4linux.c,v 1.12 2000/03/25 05:50:43 reinelt Exp $ +/* $Id: lcd4linux.c,v 1.13 2000/03/26 12:55:03 reinelt Exp $ * * LCD4Linux * @@ -20,6 +20,10 @@ * * * $Log: lcd4linux.c,v $ + * Revision 1.13 2000/03/26 12:55:03 reinelt + * + * enhancements to the PPM driver + * * Revision 1.12 2000/03/25 05:50:43 reinelt * * memory leak in Raster_flush closed @@ -89,12 +93,13 @@ #include "processor.h" char *release="LCD4Linux V" VERSION " (c) 2000 Michael Reinelt <reinelt@eunet.at>"; +char *output=NULL; int tick, tack; static void usage(void) { printf ("%s\n", release); - printf ("usage: lcd4linux [-h] [-l] [-f config-file]\n"); + printf ("usage: lcd4linux [-h] [-l] [-f config-file] [-o output-file]\n"); } void main (int argc, char *argv[]) @@ -103,7 +108,7 @@ void main (int argc, char *argv[]) char *display; int c, smooth; - while ((c=getopt (argc, argv, "hlf:"))!=EOF) { + while ((c=getopt (argc, argv, "hlf:o:"))!=EOF) { switch (c) { case 'h': usage(); @@ -115,6 +120,9 @@ void main (int argc, char *argv[]) case 'f': cfg=optarg; break; + case 'o': + output=optarg; + break; default: exit(2); } @@ -149,13 +157,6 @@ void main (int argc, char *argv[]) process_init(); - // FIXME: just debugging - lcd_clear(); - lcd_put (1, 1, "so what!"); - lcd_bar (BAR_R|BAR_H2, 2,1,50,19,46); - lcd_flush(); - exit (0); - lcd_clear(); lcd_put (1, 1, "* LCD4Linux V" VERSION " *"); lcd_put (2, 1, " (c) 2000 M.Reinelt"); |