chiark / gitweb /
*** empty log message ***
[sympathy.git] / src / vt102.h
index 6343e6dcdf1140131ddfc915d86e714c83633437..7be7d059c8cbdb638da6fb39779439de96981b91 100644 (file)
 
 /*
  * $Log$
+ * Revision 1.19  2008/02/26 23:23:17  james
+ * *** empty log message ***
+ *
+ * Revision 1.18  2008/02/26 19:08:27  james
+ * *** empty log message ***
+ *
+ * Revision 1.17  2008/02/26 16:53:24  james
+ * *** empty log message ***
+ *
+ * Revision 1.16  2008/02/24 12:22:42  james
+ * *** empty log message ***
+ *
+ * Revision 1.15  2008/02/24 00:42:53  james
+ * *** empty log message ***
+ *
  * Revision 1.14  2008/02/23 11:48:37  james
  * *** empty log message ***
  *
 #ifndef __VT102_H__
 #define __VT102_H__
 
-#define VT102_CSI_LEN 128
+#define VT102_CMD_LEN 128
 
 #define VT102_ROWS             24
-#define VT102_COLS             80
+#define VT102_COLS_132         132
+#define VT102_COLS_80          80
+#define VT102_MAX_COLS         VT102_COLS_132
 #define VT102_STATUS_ROW       24
 
 #define VT102_NMODES           32
 typedef struct
 {
   int in_escape;
-  int in_csi;
-  int csi_ptr;
-  int ignore_until_bell;
-  char csi_buf[VT102_CSI_LEN];
+  int in_cmd;
+  
+  int cmd_ptr;
+  int cmd_more_bytes;
+  int cmd_termination;
+  char cmd_buf[VT102_CMD_LEN];
 } VT102_parser;
 
 typedef struct
@@ -103,13 +122,18 @@ typedef struct
   uint8_t modes[VT102_NMODES];
   uint8_t private_modes[VT102_NMODES];
 
-  uint8_t tabs[VT102_COLS];
+  uint8_t tabs[VT102_COLS_132];
 
   int application_keypad_mode;
 
-  char last_reg_char;
+  int last_reg_char;
   int xn_glitch;
 
+  int current_width;
+
+  int g[2];
+  int cs;
+
 } VT102;
 
 #define VT102_PRIVATE_MODE_CURSOR_MODE         1