aboutsummaryrefslogtreecommitdiffstats
path: root/src/vt102.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/vt102.c')
-rw-r--r--src/vt102.c22
1 files changed, 21 insertions, 1 deletions
diff --git a/src/vt102.c b/src/vt102.c
index 8a7dc56..d29e708 100644
--- a/src/vt102.c
+++ b/src/vt102.c
@@ -10,6 +10,9 @@ static char rcsid[] = "$Id$";
/*
* $Log$
+ * Revision 1.4 2008/02/04 05:45:55 james
+ * ::
+ *
* Revision 1.3 2008/02/04 02:05:06 james
* *** empty log message ***
*
@@ -133,6 +136,11 @@ csi_starter (int c)
return 0;
}
+void vt102_scroll(VT102 *v,int start,int end)
+{
+
+}
+
void
vt102_cursor_normalize (VT102 * v, int wrap, int scroll)
{
@@ -196,13 +204,23 @@ vt102_cursor_motion (VT102 * v, int x, int y, int wrap, int scroll)
}
}
+void vt102_parse_esc(VT102 *v,int c)
+{
+fprintf(stderr, "ESC %d(%c)\n",c,c);
+}
+
+void vt102_parse_csi(VT102 *v,char *buf,int len)
+{
+buf[len]=0;
+fprintf(stderr, "CSI %s\n",buf);
+}
void
vt102_parse_char (VT102 * v, int c)
{
VT102_parser *p = &v->parser;
-
+ fprintf(stderr,"%c pc %d %d %d %d %d\n",c,c,p->in_csi,p->in_escape,v->pos.x,v->pos.y);
if (p->in_csi)
{
p->csi_buf[p->csi_ptr++] = c;
@@ -284,4 +302,6 @@ vt102_parse_char (VT102 * v, int c)
vt102_cursor_motion (v, 1, 0, 1, 1);
}
}
+
+ v->crt.pos=v->pos;
}