diff options
author | james <> | 2008-02-04 05:45:55 +0000 |
---|---|---|
committer | james <> | 2008-02-04 05:45:55 +0000 |
commit | 8865ddf602b32113af2899c5ef1046c51aeb972c (patch) | |
tree | 3b90eae60b7fa863499d8a3ec7befd94e246ffcb /src/vt102.c | |
parent | c4b7eff58a98590defd94bdbd39a7798521b55a1 (diff) | |
download | sympathy-8865ddf602b32113af2899c5ef1046c51aeb972c.tar.gz sympathy-8865ddf602b32113af2899c5ef1046c51aeb972c.tar.bz2 sympathy-8865ddf602b32113af2899c5ef1046c51aeb972c.zip |
::
Diffstat (limited to 'src/vt102.c')
-rw-r--r-- | src/vt102.c | 22 |
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; } |