… | |
… | |
12 | #include <cstring> |
12 | #include <cstring> |
13 | #include <assert.h> |
13 | #include <assert.h> |
14 | @include_sys_ioctl_h@ |
14 | @include_sys_ioctl_h@ |
15 | @include_sys_strredir_h@ |
15 | @include_sys_strredir_h@ |
16 | |
16 | |
17 | #include <sys/wait.h> |
|
|
18 | #include <sys/stat.h> |
|
|
19 | |
|
|
20 | #if HAVE_CWCHAR |
17 | #if HAVE_CWCHAR |
21 | # include <cwchar> |
18 | # include <cwchar> |
22 | #elif HAVE_WCHAR_H |
19 | #elif HAVE_WCHAR_H |
23 | # include <wchar.h> |
20 | # include <wchar.h> |
24 | #else |
21 | #else |
… | |
… | |
31 | #include <X11/Xlib.h> |
28 | #include <X11/Xlib.h> |
32 | #include <X11/Xutil.h> |
29 | #include <X11/Xutil.h> |
33 | #include <X11/Xresource.h> |
30 | #include <X11/Xresource.h> |
34 | } |
31 | } |
35 | |
32 | |
36 | /* |
|
|
37 | * If we haven't pulled in typedef's like int16_t then do them ourself |
|
|
38 | * type of (normal and unsigned) basic sizes |
|
|
39 | */ |
|
|
40 | @rxvt_int16_typedef@ |
|
|
41 | @rxvt_uint16_typedef@ |
|
|
42 | @rxvt_int32_typedef@ |
|
|
43 | @rxvt_uint32_typedef@ |
|
|
44 | |
|
|
45 | struct rxvt_fontset; |
33 | struct rxvt_fontset; |
46 | struct rxvt_color; |
34 | struct rxvt_color; |
47 | struct rxvt_vars; /* defined later on */ |
|
|
48 | struct rxvt_term; |
35 | struct rxvt_term; |
49 | struct rxvt_im; |
|
|
50 | struct rxvt_drawable; |
36 | struct rxvt_drawable; |
51 | |
37 | |
52 | typedef struct rxvt_term *rxvt_t; |
38 | typedef struct rxvt_term *rxvt_t; |
53 | |
39 | |
54 | extern rxvt_t rxvt_current_term; |
40 | extern rxvt_t rxvt_current_term; |
… | |
… | |
231 | rxvt_color *pix_colors; |
217 | rxvt_color *pix_colors; |
232 | rxvt_color *pix_colors_focused; |
218 | rxvt_color *pix_colors_focused; |
233 | #ifdef OFF_FOCUS_FADING |
219 | #ifdef OFF_FOCUS_FADING |
234 | rxvt_color *pix_colors_unfocused; |
220 | rxvt_color *pix_colors_unfocused; |
235 | #endif |
221 | #endif |
236 | short numpix_colors; |
|
|
237 | Cursor TermWin_cursor; /* cursor for vt window */ |
222 | Cursor TermWin_cursor; /* cursor for vt window */ |
238 | int sb_shadow; /* scrollbar shadow width */ |
223 | int sb_shadow; /* scrollbar shadow width */ |
239 | int numlock_state; |
224 | int numlock_state; |
240 | line_t *row_buf; // all lines, scrollback + terminal, circular, followed by temp_buf |
225 | line_t *row_buf; // all lines, scrollback + terminal, circular, followed by temp_buf |
241 | line_t *drawn_buf; // text on screen |
226 | line_t *drawn_buf; // text on screen |