aboutsummaryrefslogtreecommitdiffstats
path: root/src/ansi.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/ansi.c')
-rw-r--r--src/ansi.c15
1 files changed, 9 insertions, 6 deletions
diff --git a/src/ansi.c b/src/ansi.c
index 6253f95..3504750 100644
--- a/src/ansi.c
+++ b/src/ansi.c
@@ -10,6 +10,9 @@ static char rcsid[] = "$Id$";
/*
* $Log$
+ * Revision 1.22 2008/02/15 03:32:07 james
+ * *** empty log message ***
+ *
* Revision 1.21 2008/02/14 02:46:44 james
* *** empty log message ***
*
@@ -627,7 +630,7 @@ ansi_flush_escape (ANSI * a, Context * c)
for (i = 0; i < p->escape_ptr; ++i)
{
- c->k->key (c->k, p->escape_buf[i]);
+ keydis_key (c->k, c, p->escape_buf[i]);
}
p->escape_ptr = 0;
@@ -646,11 +649,11 @@ ansi_parse_deckey (ANSI * a, Context * c)
if ((p->escape_buf[2] >= 'A') || (p->escape_buf[2] <= 'Z'))
{
- c->k->key (c->k, KEY_UP + (p->escape_buf[2] - 'A'));
+ keydis_key (c->k, c, KEY_UP + (p->escape_buf[2] - 'A'));
}
else if ((p->escape_buf[2] >= 'a') || (p->escape_buf[2] <= 'z'))
{
- c->k->key (c->k, KEY_154 + (p->escape_buf[2] - 'a'));
+ keydis_key (c->k, c, KEY_154 + (p->escape_buf[2] - 'a'));
}
else
{
@@ -673,7 +676,7 @@ ansi_parse_ansikey (ANSI * a, Context * c)
}
if ((p->escape_buf[2] >= '0') || (p->escape_buf[2] <= '9'))
{
- c->k->key (c->k, KEY_180 + (p->escape_buf[2] - '0'));
+ keydis_key (c->k, c, KEY_180 + (p->escape_buf[2] - '0'));
}
else
{
@@ -786,7 +789,7 @@ ansi_parse_char (ANSI * a, Context * c, int ch)
}
else
{
- c->k->key (c->k, ch);
+ keydis_key (c->k, c, ch);
}
}
@@ -819,7 +822,7 @@ ansi_dispatch (ANSI * a, Context * c)
return -1;
#endif
-#if 1
+#if 0
if (*buf == 2)
{
#if 0