diff options
author | james <> | 2008-02-14 02:46:45 +0000 |
---|---|---|
committer | james <> | 2008-02-14 02:46:45 +0000 |
commit | bc6a29d06c22bdcada4cb18d8401e5d37f46fd36 (patch) | |
tree | cbe671b5cad8d7af21450915e2e312119ef0406d /src/ansi.c | |
parent | e65130e63d050d37b9605339c0abfdcef73c4472 (diff) | |
download | sympathy-bc6a29d06c22bdcada4cb18d8401e5d37f46fd36.tar.gz sympathy-bc6a29d06c22bdcada4cb18d8401e5d37f46fd36.tar.bz2 sympathy-bc6a29d06c22bdcada4cb18d8401e5d37f46fd36.zip |
*** empty log message ***
Diffstat (limited to 'src/ansi.c')
-rw-r--r-- | src/ansi.c | 22 |
1 files changed, 11 insertions, 11 deletions
@@ -10,6 +10,9 @@ static char rcsid[] = "$Id$"; /* * $Log$ + * Revision 1.21 2008/02/14 02:46:44 james + * *** empty log message *** + * * Revision 1.20 2008/02/14 01:55:57 james * *** empty log message *** * @@ -624,7 +627,7 @@ ansi_flush_escape (ANSI * a, Context * c) for (i = 0; i < p->escape_ptr; ++i) { - term_send (c, p->escape_buf[i]); + c->k->key (c->k, p->escape_buf[i]); } p->escape_ptr = 0; @@ -643,11 +646,11 @@ ansi_parse_deckey (ANSI * a, Context * c) if ((p->escape_buf[2] >= 'A') || (p->escape_buf[2] <= 'Z')) { - term_send (c, KEY_UP + (p->escape_buf[2] - 'A')); + c->k->key (c->k, KEY_UP + (p->escape_buf[2] - 'A')); } else if ((p->escape_buf[2] >= 'a') || (p->escape_buf[2] <= 'z')) { - term_send (c, KEY_154 + (p->escape_buf[2] - 'a')); + c->k->key (c->k, KEY_154 + (p->escape_buf[2] - 'a')); } else { @@ -670,7 +673,7 @@ ansi_parse_ansikey (ANSI * a, Context * c) } if ((p->escape_buf[2] >= '0') || (p->escape_buf[2] <= '9')) { - term_send (c, KEY_180 + (p->escape_buf[2] - '0')); + c->k->key (c->k, KEY_180 + (p->escape_buf[2] - '0')); } else { @@ -783,7 +786,7 @@ ansi_parse_char (ANSI * a, Context * c, int ch) } else { - term_send (c, ch); + c->k->key (c->k, ch); } } @@ -817,16 +820,13 @@ ansi_dispatch (ANSI * a, Context * c) #endif #if 1 - if (*buf == 1) - { - ansi_reset (a, NULL); - return 0; - } if (*buf == 2) { +#if 0 a->history_ptr = c->h->wptr; HISTORY_INC (c->h, a->history_ptr); - return 0; +#endif + return -1; } #endif |