aboutsummaryrefslogtreecommitdiffstats
path: root/lcd4linux.c
diff options
context:
space:
mode:
authorreinelt <>2000-03-26 12:55:03 +0000
committerreinelt <>2000-03-26 12:55:03 +0000
commit5b3b7e2609d010298a345eed91255c880b3f9e0f (patch)
treead5aa9a0fbc7d93f309558d37f17be05263fb827 /lcd4linux.c
parent2c038ac106629d78c31763f8c8498e579b3b672c (diff)
downloadlcd4linux-5b3b7e2609d010298a345eed91255c880b3f9e0f.tar.gz
[lcd4linux @ 2000-03-26 12:55:03 by reinelt]
enhancements to the PPM driver
Diffstat (limited to 'lcd4linux.c')
-rw-r--r--lcd4linux.c21
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");