chiark / gitweb /
*** empty log message ***
[sympathy.git] / src / vt102.h
index 1a23dd53581354f45d9fdfa324162e54999b7812..f0d4e91fb12bb9f0624de2a56b8c900f52a06b3f 100644 (file)
 
 /*
  * $Log$
+ * Revision 1.9  2008/02/07 01:57:46  james
+ * *** empty log message ***
+ *
+ * Revision 1.8  2008/02/07 00:39:13  james
+ * *** empty log message ***
+ *
+ * Revision 1.7  2008/02/06 20:26:58  james
+ * *** empty log message ***
+ *
+ * Revision 1.6  2008/02/06 17:53:28  james
+ * *** empty log message ***
+ *
  * Revision 1.5  2008/02/06 15:53:22  james
  * *** empty log message ***
  *
@@ -46,8 +58,17 @@ typedef struct
   int in_csi;
   int csi_ptr;
   char csi_buf[VT102_CSI_LEN];
+  int in_scs;
 } VT102_parser;
 
+typedef struct
+{
+  CRT_Pos pos;
+  int attr;
+  int origin_mode;
+} VT102_State;
+
+
 typedef struct
 {
   CRT_Pos top_margin, bottom_margin;
@@ -57,16 +78,19 @@ typedef struct
   CRT crt;
 
   int pending_wrap;
-  CRT_Pos pos,current_line;
-  
-
+  CRT_Pos pos, current_line;
 
+  VT102_State saved;
 
   uint8_t modes[VT102_NMODES];
   uint8_t private_modes[VT102_NMODES];
 
   uint8_t tabs[VT102_COLS];
 
+  int application_keypad_mode;
+
+  TTY *tty;
+
 } VT102;
 
 #define VT102_PRIVATE_MODE_CURSOR_MODE         1
@@ -77,10 +101,11 @@ typedef struct
 #define VT102_PRIVATE_MODE_ORIGIN_MODE         6
 #define VT102_PRIVATE_MODE_AUTO_WRAP           7
 #define VT102_PRIVATE_MODE_AUTO_REPEAT         8
+#define VT102_PRIVATE_MODE_SHOW_CURSOR         25
 
 #define VT102_MODE_KEYBOARD_DISABLE            2
 #define VT102_MODE_INSERT                      4
-#define VT102_PRIVATE_MODE_LOCAL_ECHO_OFF      12
+#define VT102_MODE_LOCAL_ECHO_OFF              12
 #define VT102_MODE_NEWLINE_MODE                        20
 
 #endif /* __VT102_H__ */