aboutsummaryrefslogtreecommitdiffstats
path: root/src/crt.c
diff options
context:
space:
mode:
authorjames <>2008-02-07 12:41:06 +0000
committerjames <>2008-02-07 12:41:06 +0000
commit2989eb3e46280a68714713b28cb7392ee749538e (patch)
tree55ecbb70742e51615d442da614af1fda966853c8 /src/crt.c
parentd124ea586616d64499d54f56645616d24fe1f797 (diff)
downloadsympathy-2989eb3e46280a68714713b28cb7392ee749538e.tar.gz
sympathy-2989eb3e46280a68714713b28cb7392ee749538e.tar.bz2
sympathy-2989eb3e46280a68714713b28cb7392ee749538e.zip
*** empty log message ***
Diffstat (limited to 'src/crt.c')
-rw-r--r--src/crt.c19
1 files changed, 16 insertions, 3 deletions
diff --git a/src/crt.c b/src/crt.c
index e2f49c3..b3d13f5 100644
--- a/src/crt.c
+++ b/src/crt.c
@@ -10,6 +10,9 @@ static char rcsid[] = "$Id$";
/*
* $Log$
+ * Revision 1.7 2008/02/07 12:41:06 james
+ * *** empty log message ***
+ *
* Revision 1.6 2008/02/07 12:16:04 james
* *** empty log message ***
*
@@ -58,7 +61,7 @@ crt_cls (CRT * c)
int i;
crt_erase (c, s, e, 1);
-
+ c->sh.dir=0;
}
void
@@ -67,6 +70,10 @@ crt_scroll_up (CRT * c, CRT_Pos s, CRT_Pos e, int ea)
int l, n;
int p;
+ c->sh.s=s;
+ c->sh.e=e;
+ c->sh.dir=-1;
+
s.x = 0;
e.x = CRT_COLS - 1;
@@ -76,6 +83,7 @@ crt_scroll_up (CRT * c, CRT_Pos s, CRT_Pos e, int ea)
n = e.y - s.y;
+
p = CRT_ADDR_POS (&s);
while (n--)
@@ -95,6 +103,11 @@ crt_scroll_down (CRT * c, CRT_Pos s, CRT_Pos e, int ea)
int l, n;
int p;
+ c->sh.s=s;
+ c->sh.e=e;
+ c->sh.dir=1;
+
+
s.x = 0;
e.x = CRT_COLS - 1;
@@ -126,6 +139,7 @@ crt_reset (CRT * c)
c->pos.x = 0;
c->pos.y = 0;
c->hide_cursor = 1;
+ c->sh.dir=0;
}
void
@@ -142,6 +156,5 @@ crt_insert (CRT * c, CRT_CA ca)
c->screen[CRT_ADDR (c->pos.y, c->pos.x)] = ca;
-
-
+ c->sh.dir=0;
}