diff options
author | james <> | 2008-02-06 11:30:45 +0000 |
---|---|---|
committer | james <> | 2008-02-06 11:30:45 +0000 |
commit | 8e3109cc4dc4d969084fe455c549f9422d73b5c0 (patch) | |
tree | e2899c29b3b4c1fe4a0a8332a588908ea4f76521 /src/vt102.h | |
parent | 3a09196a5ad4026f0b366f8950418b0f1803ddc2 (diff) | |
download | sympathy-8e3109cc4dc4d969084fe455c549f9422d73b5c0.tar.gz sympathy-8e3109cc4dc4d969084fe455c549f9422d73b5c0.tar.bz2 sympathy-8e3109cc4dc4d969084fe455c549f9422d73b5c0.zip |
*** empty log message ***
Diffstat (limited to 'src/vt102.h')
-rw-r--r-- | src/vt102.h | 29 |
1 files changed, 25 insertions, 4 deletions
diff --git a/src/vt102.h b/src/vt102.h index 6942175..1007353 100644 --- a/src/vt102.h +++ b/src/vt102.h @@ -12,6 +12,9 @@ /* * $Log$ + * Revision 1.4 2008/02/06 11:30:37 james + * *** empty log message *** + * * Revision 1.3 2008/02/04 20:23:55 james * *** empty log message *** * @@ -28,10 +31,12 @@ #define VT102_CSI_LEN 128 -#define VT102_ROWS 24 -#define VT102_COLS 80 +#define VT102_ROWS 24 +#define VT102_COLS 80 #define VT102_STATUS_ROW 24 +#define VT102_NMODES 32 + typedef struct { int in_escape; @@ -42,13 +47,29 @@ typedef struct typedef struct { - CRT_Pos top_margin,bottom_margin; - CRT_Pos screen_start,screen_end; + CRT_Pos top_margin, bottom_margin; + CRT_Pos screen_start, screen_end; VT102_parser parser; int attr; CRT crt; CRT_Pos pos; + + uint8_t modes[VT102_NMODES]; + uint8_t private_modes[VT102_NMODES]; } VT102; +#define VT102_PRIVATE_MODE_CURSOR_MODE 1 +#define VT102_PRIVATE_MODE_VT52 2 +#define VT102_PRIVATE_MODE_132COLS 3 +#define VT102_PRIVATE_MODE_SMOOTH_SCROLL 4 +#define VT102_PRIVATE_MODE_REVERSE_SCREEN 5 +#define VT102_PRIVATE_MODE_ORIGIN_MODE 6 +#define VT102_PRIVATE_MODE_AUTO_WRAP 7 +#define VT102_PRIVATE_MODE_AUTO_REPEAT 8 + +#define VT102_MODE_KEYBOARD_DISABLE 2 +#define VT102_MODE_INSERT 4 +#define VT102_PRIVATE_MODE_LOCAL_ECHO_OFF 12 +#define VT102_MODE_NEWLINE_MODE 20 #endif /* __VT102_H__ */ |