aboutsummaryrefslogtreecommitdiffstats
path: root/Text.c
diff options
context:
space:
mode:
authorreinelt <reinelt@3ae390bd-cb1e-0410-b409-cd5a39f66f1f>2001-03-09 15:04:53 +0000
committerreinelt <reinelt@3ae390bd-cb1e-0410-b409-cd5a39f66f1f>2001-03-09 15:04:53 +0000
commit3ebeb1868ff674096294f7abe90e8d11845a794c (patch)
tree859edd505628e518ed8a0004c94591992c8a7669 /Text.c
parentae91355deae7f98b5786c78bee9805d1348a64a1 (diff)
downloadlcd4linux-3ebeb1868ff674096294f7abe90e8d11845a794c.tar.gz
[lcd4linux @ 2001-03-09 15:04:53 by reinelt]
rename 'raster' to 'Text in Text.c added TOTO item git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@108 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
Diffstat (limited to '')
-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 }
};