aboutsummaryrefslogtreecommitdiffstats
path: root/src/vt102.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/vt102.h')
-rw-r--r--src/vt102.h14
1 files changed, 12 insertions, 2 deletions
diff --git a/src/vt102.h b/src/vt102.h
index 1a23dd5..081f802 100644
--- a/src/vt102.h
+++ b/src/vt102.h
@@ -12,6 +12,9 @@
/*
* $Log$
+ * 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 ***
*
@@ -48,6 +51,13 @@ typedef struct
char csi_buf[VT102_CSI_LEN];
} VT102_parser;
+typedef struct {
+ CRT_Pos pos;
+ int attr;
+ int origin_mode;
+} VT102_State;
+
+
typedef struct
{
CRT_Pos top_margin, bottom_margin;
@@ -59,8 +69,7 @@ typedef struct
int pending_wrap;
CRT_Pos pos,current_line;
-
-
+ VT102_State saved;
uint8_t modes[VT102_NMODES];
uint8_t private_modes[VT102_NMODES];
@@ -77,6 +86,7 @@ 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