-/*
+/*
* vt102.h:
*
- * Copyright (c) 2008 James McKenzie <james@fishsoup.dhs.org>,
+ * Copyright (c) 2008 James McKenzie <sympathy@madingley.org>,
* All rights reserved.
*
*/
-/*
- * $Id$
+/*
+ * $Id: vt102.h,v 1.25 2008/03/10 11:49:33 james Exp $
*/
-/*
- * $Log$
+/*
+ * $Log: vt102.h,v $
+ * Revision 1.25 2008/03/10 11:49:33 james
+ * *** empty log message ***
+ *
+ * Revision 1.24 2008/03/07 12:37:04 james
+ * *** empty log message ***
+ *
+ * Revision 1.23 2008/03/03 06:04:42 james
+ * *** empty log message ***
+ *
+ * Revision 1.22 2008/03/02 10:37:56 james
+ * *** empty log message ***
+ *
+ * Revision 1.21 2008/02/28 16:57:52 james
+ * *** empty log message ***
+ *
+ * Revision 1.20 2008/02/27 09:42:22 james
+ * *** empty log message ***
+ *
* Revision 1.19 2008/02/26 23:23:17 james
* *** empty log message ***
*
#define VT102_CMD_LEN 128
-#define VT102_ROWS 24
+#define VT102_MAX_ROWS ((CRT_ROWS) - 1)
+#define VT102_ROWS_24 24
#define VT102_COLS_132 132
#define VT102_COLS_80 80
#define VT102_MAX_COLS VT102_COLS_132
#define VT102_NMODES 32
-typedef struct
-{
+typedef struct {
int in_escape;
int in_cmd;
-
+
int cmd_ptr;
int cmd_more_bytes;
int cmd_termination;
char cmd_buf[VT102_CMD_LEN];
} VT102_parser;
-typedef struct
-{
+typedef struct {
CRT_Pos pos;
int attr;
int color;
} VT102_State;
-typedef struct
-{
+typedef struct {
CRT_Pos top_margin, bottom_margin;
CRT_Pos screen_start, screen_end;
VT102_parser parser;
int last_reg_char;
int xn_glitch;
- int current_width;
+ CRT_Pos current_size;
+ CRT_Pos original_size;
int g[2];
int cs;