1 | #ifndef _RXVTLIB_H_ /* include once only */ |
1 | #ifndef _RXVTLIB_H_ /* include once only */ |
2 | #define _RXVTLIB_H_ |
2 | #define _RXVTLIB_H_ |
3 | |
|
|
4 | /* |
|
|
5 | * section 1 generated by GNU autoconf for @build@ |
|
|
6 | * this section may be changed as appropriate _before_ building |
|
|
7 | */ |
|
|
8 | /***************************************************************************** |
|
|
9 | * SECTION 1 * |
|
|
10 | *****************************************************************************/ |
|
|
11 | |
|
|
12 | /* |
|
|
13 | * The following line MUST not be changed without also changing |
|
|
14 | * config.h in the main directory before building |
|
|
15 | */ |
|
|
16 | // none anymore |
|
|
17 | |
|
|
18 | /***************************************************************************** |
|
|
19 | * INCLUDES * |
|
|
20 | *****************************************************************************/ |
|
|
21 | |
3 | |
22 | #include <stdio.h> |
4 | #include <stdio.h> |
23 | #include <ctype.h> |
5 | #include <ctype.h> |
24 | #include <errno.h> |
6 | #include <errno.h> |
25 | @include_stdarg_h@ |
7 | @include_stdarg_h@ |
… | |
… | |
56 | /* whatever normal size corresponds to a integer pointer */ |
38 | /* whatever normal size corresponds to a integer pointer */ |
57 | @rxvt_intp_define@ |
39 | @rxvt_intp_define@ |
58 | /* whatever normal size corresponds to a unsigned integer pointer */ |
40 | /* whatever normal size corresponds to a unsigned integer pointer */ |
59 | @rxvt_u_intp_define@ |
41 | @rxvt_u_intp_define@ |
60 | |
42 | |
61 | /***************************************************************************** |
|
|
62 | * SECTION 2 * |
|
|
63 | * DO NOT TOUCH ANYTHING BELOW HERE * |
|
|
64 | *****************************************************************************/ |
|
|
65 | |
|
|
66 | struct rxvt_fontset; |
43 | struct rxvt_fontset; |
67 | struct rxvt_color; |
44 | struct rxvt_color; |
68 | struct rxvt_vars; /* defined later on */ |
45 | struct rxvt_vars; /* defined later on */ |
69 | struct rxvt_term; |
46 | struct rxvt_term; |
|
|
47 | struct rxvt_display; |
|
|
48 | struct rxvt_im; |
|
|
49 | struct rxvt_drawable; |
70 | |
50 | |
71 | typedef struct rxvt_term *rxvt_t; |
51 | typedef struct rxvt_term *rxvt_t; |
72 | |
52 | |
73 | extern rxvt_t rxvt_current_term; |
53 | extern rxvt_t rxvt_current_term; |
74 | |
54 | |
… | |
… | |
121 | Window parent[6]; /* parent identifiers - we're parent[0] */ |
101 | Window parent[6]; /* parent identifiers - we're parent[0] */ |
122 | Window vt; /* vt100 window */ |
102 | Window vt; /* vt100 window */ |
123 | GC gc; /* GC for drawing */ |
103 | GC gc; /* GC for drawing */ |
124 | Pixmap pixmap; |
104 | Pixmap pixmap; |
125 | rxvt_fontset *fontset; |
105 | rxvt_fontset *fontset; |
|
|
106 | rxvt_drawable *drawable; |
126 | } TermWin_t; |
107 | } TermWin_t; |
127 | |
108 | |
128 | /* |
109 | /* |
129 | * screen accounting: |
110 | * screen accounting: |
130 | * screen_t elements |
111 | * screen_t elements |
… | |
… | |
216 | #define Opt_meta8 (1LU<<10) |
197 | #define Opt_meta8 (1LU<<10) |
217 | #define Opt_scrollTtyOutput (1LU<<11) |
198 | #define Opt_scrollTtyOutput (1LU<<11) |
218 | #define Opt_scrollTtyKeypress (1LU<<12) |
199 | #define Opt_scrollTtyKeypress (1LU<<12) |
219 | #define Opt_transparent (1LU<<13) |
200 | #define Opt_transparent (1LU<<13) |
220 | #define Opt_transparent_all (1LU<<14) |
201 | #define Opt_transparent_all (1LU<<14) |
221 | #define Opt_mc_hack (1LU<<15) |
202 | #define Opt_15 (1LU<<15) // UNALLOCATED |
222 | #define Opt_tripleclickwords (1LU<<16) |
203 | #define Opt_tripleclickwords (1LU<<16) |
223 | #define Opt_scrollWithBuffer (1LU<<17) |
204 | #define Opt_scrollWithBuffer (1LU<<17) |
224 | #define Opt_jumpScroll (1LU<<18) |
205 | #define Opt_jumpScroll (1LU<<18) |
225 | #define Opt_mouseWheelScrollPage (1LU<<19) |
206 | #define Opt_mouseWheelScrollPage (1LU<<19) |
226 | #define Opt_pointerBlank (1LU<<20) |
207 | #define Opt_pointerBlank (1LU<<20) |
… | |
… | |
235 | /* ------------------------------------------------------------------------- */ |
216 | /* ------------------------------------------------------------------------- */ |
236 | |
217 | |
237 | typedef struct { |
218 | typedef struct { |
238 | short state; |
219 | short state; |
239 | Window win; |
220 | Window win; |
|
|
221 | struct rxvt_drawable *drawable; |
240 | } menuBar_t; |
222 | } menuBar_t; |
241 | |
223 | |
242 | typedef struct { |
224 | typedef struct { |
243 | char state; /* scrollbar state */ |
225 | char state; /* scrollbar state */ |
244 | char init; /* scrollbar has been initialised */ |
226 | char init; /* scrollbar has been initialised */ |
… | |
… | |
261 | TermWin_t TermWin; |
243 | TermWin_t TermWin; |
262 | scrollBar_t scrollBar; |
244 | scrollBar_t scrollBar; |
263 | menuBar_t menuBar; |
245 | menuBar_t menuBar; |
264 | unsigned long Options; |
246 | unsigned long Options; |
265 | XSizeHints szHint; |
247 | XSizeHints szHint; |
266 | Display *Xdisplay; |
248 | rxvt_display *display; |
267 | int Xdepth; |
|
|
268 | int Xscreen; |
|
|
269 | Visual *Xvisual; |
|
|
270 | Colormap Xcmap; |
|
|
271 | rxvt_color *PixColors; |
249 | rxvt_color *PixColors; |
272 | short numPixColors; |
250 | short numPixColors; |
273 | Cursor TermWin_cursor; /* cursor for vt window */ |
251 | Cursor TermWin_cursor; /* cursor for vt window */ |
274 | int sb_shadow; /* scrollbar shadow width */ |
252 | int sb_shadow; /* scrollbar shadow width */ |
275 | int Xfd; /* file descriptor of X server connection */ |
|
|
276 | int cmd_fd; /* pty file descriptor; connected to command */ |
253 | int cmd_fd; /* pty file descriptor; connected to command */ |
277 | int tty_fd; /* tty file descriptor; connected to child */ |
254 | int tty_fd; /* tty file descriptor; connected to child */ |
278 | int numlock_state; |
255 | int numlock_state; |
279 | text_t **drawn_text; /* text drawn on screen (characters) */ |
256 | text_t **drawn_text; /* text drawn on screen (characters) */ |
280 | rend_t **drawn_rend; /* text drawn on screen (rendition) */ |
257 | rend_t **drawn_rend; /* text drawn on screen (rendition) */ |