X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=src%2Fvt102.h;h=e09fbf60e068711504c4a6f95137264e488d136a;hb=797b75daa6c8bfd2031766989873b370266c0f42;hp=2f7867d76c53da3db31161e332490ced44db2432;hpb=7e2a4c6ceec2f4a204faf416ca150742f7d5f364;p=sympathy.git diff --git a/src/vt102.h b/src/vt102.h index 2f7867d..e09fbf6 100644 --- a/src/vt102.h +++ b/src/vt102.h @@ -12,6 +12,18 @@ /* * $Log$ + * 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 *** + * + * 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 *** * @@ -65,27 +77,26 @@ #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 -#define VT102_DCA_LEN 16 typedef struct { int in_escape; - int in_csi; - int in_dca; - int ignore_until_bell; + int in_cmd; - int csi_ptr; - char csi_buf[VT102_CSI_LEN]; - int dca_ptr; - char dca_buf[VT102_DCA_LEN]; + int cmd_ptr; + int cmd_more_bytes; + int cmd_termination; + char cmd_buf[VT102_CMD_LEN]; } VT102_parser; typedef struct @@ -114,13 +125,19 @@ 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; int last_reg_char; int xn_glitch; + CRT_Pos current_size; + CRT_Pos original_size; + + int g[2]; + int cs; + } VT102; #define VT102_PRIVATE_MODE_CURSOR_MODE 1