aboutsummaryrefslogtreecommitdiffstats
path: root/Text.c
diff options
context:
space:
mode:
authorreinelt <>2001-03-09 15:04:53 +0000
committerreinelt <>2001-03-09 15:04:53 +0000
commit6caa19fa629e835df6cc33eceb8c04e2f8ce728a (patch)
tree859edd505628e518ed8a0004c94591992c8a7669 /Text.c
parent002379a437d96babd684c9f2a860f193d4f89400 (diff)
downloadlcd4linux-6caa19fa629e835df6cc33eceb8c04e2f8ce728a.tar.gz
[lcd4linux @ 2001-03-09 15:04:53 by reinelt]
rename 'raster' to 'Text in Text.c added TOTO item
Diffstat (limited to 'Text.c')
-rw-r--r--Text.c14
1 files changed, 10 insertions, 4 deletions
diff --git a/Text.c b/Text.c
index f20efba..9138c0b 100644
--- a/Text.c
+++ b/Text.c
@@ -1,4 +1,4 @@
-/* $Id: Text.c,v 1.1 2001/03/09 13:08:11 ltoetsch Exp $
+/* $Id: Text.c,v 1.2 2001/03/09 15:04:53 reinelt Exp $
*
* pure ncurses based text driver
*
@@ -20,6 +20,11 @@
*
*
* $Log: Text.c,v $
+ * Revision 1.2 2001/03/09 15:04:53 reinelt
+ *
+ * rename 'raster' to 'Text in Text.c
+ * added TOTO item
+ *
* Revision 1.1 2001/03/09 13:08:11 ltoetsch
* Added Text driver
*
@@ -38,6 +43,8 @@
#include <stdio.h>
#include <curses.h>
+#define min(x,y) (x)<(y)?x:y
+
#ifdef STANDALONE
int main(int argc, char *argv[])
@@ -93,7 +100,7 @@ int Text_init (LCD *Self)
}
if (sscanf(s=cfg_get("size")?:"20x4", "%dx%d", &cols, &rows)!=2 || rows<1 || cols<1) {
- error ("Raster: bad size '%s'", s);
+ error ("Text: bad size '%s'", s);
return -1;
}
Self->rows=rows;
@@ -159,7 +166,6 @@ int Text_put (int row, int col, char *text)
return 0;
}
-#define min(x,y) (x)<(y)?x:y
int Text_bar (int type, int row, int col, int max, int len1, int len2)
{
int len, i;
@@ -202,7 +208,7 @@ int Text_flush (void)
LCD Text[] = {
{ "Text",4,20,1,1,BARS,0,
- Text_init,Text_clear,Text_put,Text_bar,0,Text_flush,Text_quit },
+ Text_init,Text_clear,Text_put,Text_bar,Text_gpo,Text_flush,Text_quit },
{ NULL }
};