X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=sympathy.git;a=blobdiff_plain;f=src%2Fvt102.h;h=02fdf990718abd080b5d831a4dcbf568da5fb994;hp=2f8d6c1891ed6020154db33466c8dff65641055f;hb=3e72a1f6fc28777c26e4fb109867bd2a3c7b89b0;hpb=2d253c926fb7ddf76c9b04dd6076e652a9034c69 diff --git a/src/vt102.h b/src/vt102.h index 2f8d6c1..02fdf99 100644 --- a/src/vt102.h +++ b/src/vt102.h @@ -12,6 +12,18 @@ /* * $Log$ + * 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 *** + * + * 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 *** * @@ -70,8 +82,11 @@ #define VT102_CMD_LEN 128 -#define VT102_ROWS 24 -#define VT102_COLS 80 +#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_STATUS_ROW 24 #define VT102_NMODES 32 @@ -81,7 +96,7 @@ typedef struct { int in_escape; int in_cmd; - + int cmd_ptr; int cmd_more_bytes; int cmd_termination; @@ -114,13 +129,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