chiark
/
gitweb
/
~ianmdlvl
/
sympathy.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
*** empty log message ***
[sympathy.git]
/
src
/
crt.c
diff --git
a/src/crt.c
b/src/crt.c
index b8391506796b569da77acbb52a3959b2ca9354e2..b3d13f5a885a43fef598d289a662fd2187ece7c4 100644
(file)
--- a/
src/crt.c
+++ b/
src/crt.c
@@
-10,6
+10,12
@@
static char rcsid[] = "$Id$";
/*
* $Log$
/*
* $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 ***
+ *
* Revision 1.5 2008/02/06 11:30:37 james
* *** empty log message ***
*
* Revision 1.5 2008/02/06 11:30:37 james
* *** empty log message ***
*
@@
-38,8
+44,10
@@
crt_erase (CRT * c, CRT_Pos s, CRT_Pos e, int ea)
while (ps <= pe)
{
ps->chr = ' ';
while (ps <= pe)
{
ps->chr = ' ';
- if (ea)
+ if (ea)
{
ps->attr = CRT_ATTR_NORMAL;
ps->attr = CRT_ATTR_NORMAL;
+ ps->color = CRT_COLOR_NORMAL;
+ }
ps++;
}
ps++;
}
@@
-53,15
+61,7
@@
crt_cls (CRT * c)
int i;
crt_erase (c, s, e, 1);
int i;
crt_erase (c, s, e, 1);
-
-#if 0
- for (i = 0; i < CRT_ROWS; ++i)
- {
- c->screen[CRT_ADDR (i, i)].chr = '@' + i;
- c->screen[CRT_ADDR (i, i)].attr = CRT_ATTR_NORMAL;
- }
-#endif
-
+ c->sh.dir=0;
}
void
}
void
@@
-70,6
+70,10
@@
crt_scroll_up (CRT * c, CRT_Pos s, CRT_Pos e, int ea)
int l, n;
int p;
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;
s.x = 0;
e.x = CRT_COLS - 1;
@@
-79,6
+83,7
@@
crt_scroll_up (CRT * c, CRT_Pos s, CRT_Pos e, int ea)
n = e.y - s.y;
n = e.y - s.y;
+
p = CRT_ADDR_POS (&s);
while (n--)
p = CRT_ADDR_POS (&s);
while (n--)
@@
-98,6
+103,11
@@
crt_scroll_down (CRT * c, CRT_Pos s, CRT_Pos e, int ea)
int l, n;
int p;
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;
s.x = 0;
e.x = CRT_COLS - 1;
@@
-129,6
+139,7
@@
crt_reset (CRT * c)
c->pos.x = 0;
c->pos.y = 0;
c->hide_cursor = 1;
c->pos.x = 0;
c->pos.y = 0;
c->hide_cursor = 1;
+ c->sh.dir=0;
}
void
}
void
@@
-145,6
+156,5
@@
crt_insert (CRT * c, CRT_CA ca)
c->screen[CRT_ADDR (c->pos.y, c->pos.x)] = ca;
c->screen[CRT_ADDR (c->pos.y, c->pos.x)] = ca;
-
-
+ c->sh.dir=0;
}
}