aboutsummaryrefslogtreecommitdiffstats
path: root/src/crt.c
diff options
context:
space:
mode:
authorjames <>2008-02-22 17:07:00 +0000
committerjames <>2008-02-22 17:07:00 +0000
commita7a1526ef4fed8460a87713fac159cc714bfde77 (patch)
treee198c9785f1d883a5a1804204bd7d8ac834f499f /src/crt.c
parent980bd369ac8759c8a1df6fea7cbb5bfc8fee7afc (diff)
downloadsympathy-a7a1526ef4fed8460a87713fac159cc714bfde77.tar.gz
sympathy-a7a1526ef4fed8460a87713fac159cc714bfde77.tar.bz2
sympathy-a7a1526ef4fed8460a87713fac159cc714bfde77.zip
*** empty log message ***
Diffstat (limited to 'src/crt.c')
-rw-r--r--src/crt.c17
1 files changed, 10 insertions, 7 deletions
diff --git a/src/crt.c b/src/crt.c
index a9e6e86..5f5656b 100644
--- a/src/crt.c
+++ b/src/crt.c
@@ -10,6 +10,9 @@ static char rcsid[] = "$Id$";
/*
* $Log$
+ * Revision 1.10 2008/02/22 17:07:00 james
+ * *** empty log message ***
+ *
* Revision 1.9 2008/02/07 13:22:51 james
* *** empty log message ***
*
@@ -42,7 +45,7 @@ static char rcsid[] = "$Id$";
#include "project.h"
void
-crt_erase (CRT * c, CRT_Pos s, CRT_Pos e, int ea)
+crt_erase (CRT * c, CRT_Pos s, CRT_Pos e, int ea,int color)
{
CRT_CA *ps = &c->screen[CRT_ADDR_POS (&s)];
CRT_CA *pe = &c->screen[CRT_ADDR_POS (&e)];
@@ -53,7 +56,7 @@ crt_erase (CRT * c, CRT_Pos s, CRT_Pos e, int ea)
if (ea)
{
ps->attr = CRT_ATTR_NORMAL;
- ps->color = CRT_COLOR_NORMAL;
+ ps->color = color;
}
ps++;
}
@@ -67,12 +70,12 @@ crt_cls (CRT * c)
CRT_Pos e = { CRT_COLS - 1, CRT_ROWS - 1 };
int i;
- crt_erase (c, s, e, 1);
+ crt_erase (c, s, e, 1, CRT_COLOR_NORMAL);
c->sh.dir = 0;
}
void
-crt_scroll_up (CRT * c, CRT_Pos s, CRT_Pos e, int ea)
+crt_scroll_up (CRT * c, CRT_Pos s, CRT_Pos e, int ea,int color)
{
int l, n;
int p;
@@ -101,12 +104,12 @@ crt_scroll_up (CRT * c, CRT_Pos s, CRT_Pos e, int ea)
}
s.y = e.y;
- crt_erase (c, s, e, ea);
+ crt_erase (c, s, e, ea,color);
}
void
-crt_scroll_down (CRT * c, CRT_Pos s, CRT_Pos e, int ea)
+crt_scroll_down (CRT * c, CRT_Pos s, CRT_Pos e, int ea,int color)
{
int l, n;
int p;
@@ -134,7 +137,7 @@ crt_scroll_down (CRT * c, CRT_Pos s, CRT_Pos e, int ea)
}
e.y = s.y;
- crt_erase (c, s, e, ea);
+ crt_erase (c, s, e, ea,color);
}