aboutsummaryrefslogtreecommitdiffstats
path: root/src/ansi.h
diff options
context:
space:
mode:
authorjames <>2008-02-07 00:39:13 +0000
committerjames <>2008-02-07 00:39:13 +0000
commit10e44cc4a65158fb6aaab3428a747ad4e5ead2f9 (patch)
tree2aef7fd3972bd6a8b67ee264c2b8c4b73e03e615 /src/ansi.h
parentb4c47719823e9907f6040e1e899b927cbeb8282e (diff)
downloadsympathy-10e44cc4a65158fb6aaab3428a747ad4e5ead2f9.tar.gz
sympathy-10e44cc4a65158fb6aaab3428a747ad4e5ead2f9.tar.bz2
sympathy-10e44cc4a65158fb6aaab3428a747ad4e5ead2f9.zip
*** empty log message ***
Diffstat (limited to 'src/ansi.h')
-rw-r--r--src/ansi.h15
1 files changed, 14 insertions, 1 deletions
diff --git a/src/ansi.h b/src/ansi.h
index 2a5977b..1b84ddc 100644
--- a/src/ansi.h
+++ b/src/ansi.h
@@ -12,6 +12,9 @@
/*
* $Log$
+ * Revision 1.3 2008/02/07 00:39:13 james
+ * *** empty log message ***
+ *
* Revision 1.2 2008/02/06 11:30:37 james
* *** empty log message ***
*
@@ -25,6 +28,16 @@
#define ANSI_INVAL -1
+#define ANSI_ESCAPE_BUF_LEN 10
+#define ANSI_ESCAPE_TIMEOUT 100000 /*in ms*/
+
+typedef struct {
+int in_escape;
+struct timeval last_escape;
+char escape_buf[ANSI_ESCAPE_BUF_LEN];
+int escape_ptr;
+} ANSI_Parser;
+
typedef struct
{
int fd;
@@ -33,9 +46,9 @@ typedef struct
CRT_Pos pos;
CRT_Pos size;
int hide_cursor;
-
int attr;
+ ANSI_Parser parser;
} ANSI;