chiark
/
gitweb
/
~ianmdlvl
/
sympathy.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
*** empty log message ***
[sympathy.git]
/
src
/
ansi.h
diff --git
a/src/ansi.h
b/src/ansi.h
index 2a5977b973ad7def2834821a7bc6bc41abd11c6d..e88f076c27c8967d3d6bfee82060fe5c9c94e161 100644
(file)
--- a/
src/ansi.h
+++ b/
src/ansi.h
@@
-12,6
+12,15
@@
/*
* $Log$
/*
* $Log$
+ * Revision 1.5 2008/02/07 12:16:04 james
+ * *** empty log message ***
+ *
+ * Revision 1.4 2008/02/07 00:43:27 james
+ * *** empty log message ***
+ *
+ * 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 ***
*
* Revision 1.2 2008/02/06 11:30:37 james
* *** empty log message ***
*
@@
-25,6
+34,17
@@
#define ANSI_INVAL -1
#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;
typedef struct
{
int fd;
@@
-33,9
+53,10
@@
typedef struct
CRT_Pos pos;
CRT_Pos size;
int hide_cursor;
CRT_Pos pos;
CRT_Pos size;
int hide_cursor;
-
int attr;
int attr;
+ int color;
+ ANSI_Parser parser;
} ANSI;
} ANSI;