chiark / gitweb /
*** empty log message ***
[sympathy.git] / src / ansi.h
index 1b84ddc09e55734a26035b4bd086c00ff19ed421..7aa5935e690c7b0282fb1c4013017fb4cea9ddcf 100644 (file)
 
 /*
  * $Log$
+ * Revision 1.7  2008/02/13 16:57:29  james
+ * *** empty log message ***
+ *
+ * Revision 1.6  2008/02/13 01:08:18  james
+ * *** empty log message ***
+ *
+ * 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 ***
  *
 #define ANSI_INVAL -1
 
 #define ANSI_ESCAPE_BUF_LEN 10
-#define ANSI_ESCAPE_TIMEOUT    100000 /*in ms*/
+#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;
+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;
+  ANSI_Parser parser;
+
+  TTY *terminal;
 
   CRT crt;
   CRT_Pos pos;
   CRT_Pos size;
   int hide_cursor;
   int attr;
+  int color;
 
-  ANSI_Parser parser;
+
+  int history_ptr;
 } ANSI;